[Solved] Turn around animations

Started by Kaio, Tue 23/02/2010 20:28:25

Previous topic - Next topic

Kaio

Hi! I want my game to run turn around animations before the character starts to walk. Not just the turn before walking, because animations would be much smoother. Also, while walking and changing direction I want to play that animation, too. Is there a simple way to do that? Thanks!

barefoot

#1
Hi

You should make a view of the animation you want the character to do before walking and turning using the ChangeView command then changing it back? Maybe have it on a Timer for each time you use it, possibly using regions to activate the timer to change view and walk to....?

Something along these lines....possibly

barefoot

I May Not Be Perfect but I Have A Big Heart ..

Kaio

Yeah, I've seen this working bug-free in some AGS-games. But how is it done exactly? It needs a new walk-function, too, I guess. If someone did this previously, it would be very cool to tell :).

Khris

There's no simply way, no.
One way is to use your own pathfinding. It might also be possible with a plugin.
The only "standard" way I can see is sending out a fast walking dummy character, track their movement and replicate it, animating the actual player character between turns. This will produce a noticeable lag unless you do the tracking and replicating at the same time.

Edit: which game(s) did you see this in?

Kaio

'La Croix Pan' by TheJBurger comes to my mind. In fact, i want my characters to behave in the exact same way.

Khris

Just add standing frames for the other four directions.

Kaio

That did it, thanks. It's not a full animation, but it looks ok. Anyway, somehow I couldn't get this working in the 3.2 Beta. It worked fine in the 3.1.2 SP1 however.

SMF spam blocked by CleanTalk