Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: EnterTheStory (aka tolworthy) on Wed 08/04/2009 10:32:33

Title: how to make a walking animation continue when the person stops? (SOLVED)
Post by: EnterTheStory (aka tolworthy) on Wed 08/04/2009 10:32:33
I have a few characters where the same animation should play continuously, regardless of whether the character is moving or stops.

I could use the same animation for walking and idling, but as far as I can tell, every time a character moves the walking animation starts from frame 1. And when they stop the idle animation starts from frame 1. Is there any way to just have one long animation loop continuously? (I'm using 2.72)
Title: Re: how to make a walking animation continue when the person stops?
Post by: Dualnames on Wed 08/04/2009 10:35:09
I think there's a character plugin doing that. But I'm sure there must be a better way as well. How about placing.

cNPC1.Animate(view,loop,eNoBlock,eForwards);
Title: Re: how to make a walking animation continue when the person stops?
Post by: EnterTheStory (aka tolworthy) on Wed 08/04/2009 10:56:19
EDIT:
I found a workaround. The character now thinks it's staying still, but I sneakily change it's X and Y coordinates using repExAlways. It's not elegant, but it works reliably.