Hi All,
How can I make when I pass the Last Frame it will go back to the First frame?
And when I move back from the first frame it will go to the Last frame?
I tried to play with the Sprite.AnimationFrameCount +1 but had no luck
Frame 0 is empty just to make it easy for me to follow.
Up: set frame to (Obj.AnimationFrame+1)%Obj.AnimationFrameCount
Down: set frame to (Obj.AnimationFrameCount+Obj.AnimationFrame-1) %Obj.AnimationFrameCount
Develop games in your browser. Powerful, performant & highly capable.
Thank you so much dop2000 it works like MAGIC! :)