Object on tounch
object.AnimationFrameCount +1 loop
basically, when it hits the end frame it goes back to the first frame
Develop games in your browser. Powerful, performant & highly capable.
There is an option in animation editor for Loop, set it to Yes.
Hi, thx for your answer but i tried this and this doesnt work
im trying to change the animationframe only when touch. every touch the frame goes up +1
how can I loop it to back to the first frame after it reaches the last frame
Im trying to do something like this
but it wont change to animation 0
or rather something like this gyazo.com/46a1d07f9dbbfe50cd7dbb1ff3304523
I read this on a old post but it doesnt work, am i doing something wrong
I'm not sure what the attempted shortform is but I would do it with a second event and condition, if bag clicked and bag.animationframe=bag.animationframecount-1 set frame to 0.