Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Anarcho on Sat 11/12/2004 23:53:46

Title: Character returning to Down loop [SOLVED]
Post by: Anarcho on Sat 11/12/2004 23:53:46
How do I fix it so that once my character finishes walking, she returns to the 0 loop, the downward view.  Right now, if she walks to the side, she stops on the first sprite of the walk cycle, which has her leg in the air.  I want her to return to the first sprite, in another loop...
Title: Re: Character returning to Down loop
Post by: Ishmael on Sat 11/12/2004 23:57:09
If you don't have an idle view for the character you can use it. Put the standing still sprite only on the down loop, and set the character idle view to that view and the delay to 0 (using the appropriate script command, might have been SetCharacterIdle, but I'm not sure). That should fix it.

Another solution is to make a standing still sprite for all the dirctions and place it as the first sprite in the loop. This way the character stopping at a side loop wouldn't leave them to a wierd position.
Title: Re: Character returning to Down loop
Post by: Anarcho on Sun 12/12/2004 00:06:18
Ok, I did your first suggestion and it worked like a charm.  Thanks for the quick response!
Title: Re: Character returning to Down loop [SOLVED]
Post by: strazer on Sun 12/12/2004 01:37:41
Actually you would be better off using the second suggestion as it is how it's intended to work and it lets you use the idle view properly.
What you have now is a workaround that could cause problems later on. Better do it right from the start.
If you don't want to draw seperate standing sprites for each direction (would look better though) you can just use loop 0's standing sprite as first sprite for each direction.
Title: Re: Character returning to Down loop [SOLVED]
Post by: TerranRich on Mon 13/12/2004 03:49:35
You're supposed to put your standing-still sprite as frame #1 anyway. Do it that way.