Game Development Community

Player diagonal forward animation

by Tim Heldna · in Torque Game Engine · 09/08/2005 (7:10 pm) · 6 replies

When the player goes diagonaly forward the forward animation,
and strafe animation mix together making him look like a retard.

I would be fine if it just played the run animaion. Any one know how to do this?

#1
01/27/2006 (8:09 am)
Bump Bump
#2
01/27/2006 (8:20 am)
Lol, yeah I noticed this too. Shouldn't be all too hard to change but I'm not in the code at the moment.
#3
01/27/2006 (8:55 am)
P.S.

No offence to any retards who cannot help but walk in this manner. I really am a great humanitarium : p In fact i once had a sister with a wooden leg who walked kind of funny when straffing and i never judged her.

Seriously though, any punters on how one would achieve what's in my original post?
#4
01/27/2006 (10:43 am)
Player::pickActionAnimation

It checks the movement direction against a small array of vectors, to check if the player is going forward, backward or sideways (it's done in a for loop using dot products). The most dominant direction determines the animation used. It shouldn't be too hard to add some bias towards the forward movement or something.
#5
01/27/2006 (2:53 pm)
Lol.. might want to say 'no offense to any handicapped people' instead of 'retards' there mate. just a thought =P
#6
01/28/2006 (12:56 pm)
I use 45 degres forward/backward animations, to check what directions i use in player.cc
for runforward45left "runfl" { -1.+1,0 } } and for the runforward45right "runfr" { +1,+1,0 } }
I havent tested if it works to use for only run forward , but its a clue.