Character returning to Down loop [SOLVED]

Started by Anarcho, Sat 11/12/2004 23:53:46

Previous topic - Next topic

Anarcho

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...


Ishmael

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.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

Anarcho

Ok, I did your first suggestion and it worked like a charm.  Thanks for the quick response!


strazer

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.

TerranRich

You're supposed to put your standing-still sprite as frame #1 anyway. Do it that way.
Status: Trying to come up with some ideas...

SMF spam blocked by CleanTalk