Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Kinoko on Mon 02/08/2004 07:24:50

Title: Animating without specifying loop. (SOLVED)
Post by: Kinoko on Mon 02/08/2004 07:24:50
Is there a way to animate something without specifying a specific loop? For example, I want to have my character animate on button press with whichever loop corresponds to which way he's facing. I'm aware I could script in four 'if' statements relying on which view/sprite he's currently using, but I can't be sure exactly which view he'll be using at the time so this would be a royal pain in the ass.

Is there a better way? -_-
Title: Re: Animating without specifying loop.
Post by: Gilbert on Mon 02/08/2004 07:27:47
Hmmm try this:
AimateCharacter(ROGER,character[ROGER].loop,whatever,whatever);
Title: Re: Animating without specifying loop.
Post by: Kinoko on Mon 02/08/2004 11:23:58
Dargh, now why didn't I think of that... thanks!