Since we're talking about the
loop() method, let's start discussing some of the different controls for playing and stopping animations. There are four basic methods we can use:
play("AnimName"):This method plays the animation once from beginning to end.
loop("AnimName"):This method is similar to play, but the animation doesn't stop when it's over; it replays again from the beginning.
stop("AnimName"):This method, if called without an argument, stops all the animations currently playing on the
Actor. If called with an argument, it only stops the named animation.
Note that the
Actor will remain in whatever posture they are in when this method is called.
pose("AnimName", FrameNumber):Places the
Actorin the pose ...