Mask and images?


(fedyfausto) #1

hello guys, i have an image into an entity and i wanna show this in vertical for example for life quantity (like a big heart red), exist any solution like MASK of image like rectagle and resize (for example in heigth) this and show the quantity of life ?


(Zachary Lewis) #2

You can use the drawMask property of Image to specify a masked area.

Here’s the important part:


Active clip rectangle?
(fedyfausto) #3

and if i need the animation bottom TO top? :0


(Chris Logsdon) #4

Then you adjust the clippingArea height instead of width.


(Skelyton) #5

I’m having issues with masks myself. I want to use an image for my mask, instead of a rectangle. I’ve tried converting the image to a BitmapData with .source, but I can’t get that to work. I might have the syntax wrong. Can anyone help me with this?