Game Development Community

Movement States

by Eric Dunn · in Torque Game Engine · 11/12/2003 (11:24 am) · 2 replies

Hi, im still pretty new to the torque engine, and have been trying to do some AI work for my game. However, im not really sure how to implement it, whether to focus on scripting it, or making changes to the engine. Right now i have bots running around following waypoints, but i want to get them to have a walk state wehre obviously my bots walk, and also a run state. I noticed a MoveState enum value in player.cc, so im wondering if movement is hard coded at 1 speed?

Like i said im still pretty new to torque, so any incite on this topic should help me out, or if anyone could just point me in the right direction it would be appreciated :)

#1
11/12/2003 (12:19 pm)
I would implement your own "walkstate" code. The stuff in player.cc is hairy to say the least. :)
#2
11/12/2003 (12:31 pm)
Depending on how you want to handle it.

you could just use the move speed to handle this.

so in other words it could all be done in the script, by adjusting the movespeed.