I tryed this extension - Pixelmask http://wiki.starling-framework.org/extensions/pixelmask
unfortunately its doesnt work with Bitmap fonts as a mask;
So how to solve this issue or can I make starling Image from BitmapFont's text field? For flash display objects I could convert anything using BitmapData but BitmapData cant take a starling Sprites and another Strling objects.
BitmapFont as mask(5 posts) (3 voices)
or can I make starling Image from BitmapFont's text field?
Not exactly sure what your use case needs to be, but the BitmapFont class also has a function called BitmapFont.createSprite(...) which simply creates a Sprite parent filled with a bunch of child Image instances for each character. No text field is required. Not sure if that gets you something you can work with...
Thanks it works but Pixelmask always crop text in the bottom for any text size.
But main trouble is Pixelmask dont allow to move mask or masked Object
does anyone know the way to make masked object and which allow me to move object under mask?
can you post a screenshot so i have a better visual idea of what you're trying to accomplish?
Jonathan Hart, http://www.youtube.com/watch?v=4RnuBQb8ZRQ#t=16
text on the top - "21000".
My idea how to make it:
1) Make Quad with horizontal gradient
2) Clip it using BitmapFont as a Mask
3) Moving Quad in the loop
unfortunately Starling doesnt support masking (not clipping, I need my custom mask) and extension works wrongly
You must log in to post.