Keeping loops running (SOLVED)

Started by Adorewood, Fri 24/03/2006 11:21:36

Previous topic - Next topic

Adorewood

I'm not sure whether this is in the right forum or not, but here goes:
I want to set a character into an animation and KEEP him that way (i.e, the animation will continue looping unless I call on the script to do otherwise). How do I do this?

Ashen

BFAQ Entry: Having a character continuously animated in the background

The two most obvious methods (both mentioned in the BFAQ) would be to set the animation as the character's Idle view, with a delay of 0, or (possibly more simply for your needs) use the eRepeat parameter of Character.Animate:
QuoteThe RepeatStyle parameter sets whether the animation will continuously repeat the cycling through the frames. This can be eOnce (or zero), in which case the animation will start from the first frame of LOOP, and go through each frame in turn until the last frame, where it will stop. If RepeatStyle is eRepeat (or 1), then when the last frame is reached, it will go back to the first frame and start over again with the animation.

Is there something about either of those that doesn't work, or isn't quite what you want?

(This probably belongs in Beginner's Tech.)
I know what you're thinking ... Don't think that.

Adorewood

Er, problem solved. And yes, this does belong in the Beginner's Tech forum. Sorry for that.
I'm basically trying to learn AGS without any consultations of the FAQ or tutorials. Well, so much for that :P. I guess I'll have to read the FAQ.

SMF spam blocked by CleanTalk