I need to create a simple animation, moving a sprite while it decreases in size from 300 to 200 pixels. I am using the moveto plugin to make the movement and I do not know how to reduce sprite gradually, simultaneously. Could anyone give me a hand? Thanks.
the moveto plugin has the condition ismoving..
so you can scale during the ismoving period..
I guess getting the distance between start point and endpoint and setting the scale according to the percentage moved while ismoving would do the trick..
Hi LittleStain
Thanks for the suggestion. I understand that is possible, but I need some help to implement it. Could you help me with a pseudocode?
Thanks anyway.
Develop games in your browser. Powerful, performant & highly capable.
Up
Any help?