Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: markcullinane on Mon 23/02/2004 18:35:13

Title: Animate character while moving
Post by: markcullinane on Mon 23/02/2004 18:35:13
First off, thank you once again Scorpiourus for helping me last time. It's much appreciated.

Again this is with my Pac-man game-
I have a ghost, and on View 15 (the ghost's view) there is the standard ghost sprite, as well as another with red eyes- the idea is to make his eyes flash repeatedly as he moves. AnimateCharacter does this fine- but it stops the ghost in his tracks. I need it animated while it moves. Is this possible?
(The ghost is a character as opposed to an object by the way)

Thanks,
Mark
Title: Re:Animate character while moving
Post by: Scummbuddy on Mon 23/02/2004 19:59:37
anyway you could incorporate his flashing eyes into his walking view?
Title: Re:Animate character while moving
Post by: Scorpiorus on Wed 25/02/2004 20:34:53
Or, in case you don't want to redraw them, use FOLLOW_EXACTLY parameter with the FollowCharacterEx() function:

FollowCharacterEx (RED_EYES, GHOST, FOLLOW_EXACTLY, 0);

AnimateCharacter(RED_EYES,....);

~Cheers