Game Development Community

Changing sequences

by Thomas Stankevich · in Torque Game Engine · 09/06/2008 (8:35 am) · 2 replies

Hello. I'm working on changing some of the standard player sequences dynamically. In other words, I'm making a game where the player will show a different run animation if he is about to die. I was looking around and couldn't find anything about it. Any help will be good.

Thanks.

#1
09/06/2008 (10:56 am)
You would have to do a check of the players health, and add your new animation when the players health get's to the point you want.
How you would do that I don't know.
#2
09/06/2008 (2:15 pm)
The standard movement-related animations are called ActionAnimation's in C++, and they are assigned in the Player method pickActionAnimation. There is where to look. There are also some enums/defines in player.h and player.cpp that list the sequence name of all action-animations, so you would need to add your new ones to those lists.