1 decade ago by Rocket13531
I am looking to achieve something akin to the Vines in Mario, which grow out of a tube/ground. Essentially, I'd like to have an entity that starts at 0px in height (or width), then grows incrementally to its maximum size, and then retracts back down to zero. The effect could be a hand reaching out from the ground, ceiling, or walls.
It is easy enough to handle changing the size of an entity, but unfortunately, I do not see any way to "mask" the sprite animSheet, so that only part of the graphic is revealed at a time (1px, 2px, 3px etc).
What I have found is that I can use ig.Image() to expand/contract, but it will not animate of course.
Is what I'm trying to achieve possible with impactJS?
Thanks!
It is easy enough to handle changing the size of an entity, but unfortunately, I do not see any way to "mask" the sprite animSheet, so that only part of the graphic is revealed at a time (1px, 2px, 3px etc).
What I have found is that I can use ig.Image() to expand/contract, but it will not animate of course.
Is what I'm trying to achieve possible with impactJS?
Thanks!