Game Development Community

How do I create new types of actions?

by Steelwing · in Technical Issues · 08/20/2007 (10:34 am) · 3 replies

I'd like to create things such as superjump. The standard function increments something called $mvtrigger2, which I can't find anywhere in torque. Where do I find this array of triggers, and how do I make my own kind of jump?

Also, I'd like to have a button do something different depending on what kind of trigger you're standing in. What would be the best way to do this?

Thanks!

About the author

Recent Threads


#1
08/20/2007 (10:34 am)
The standard jump function*
#2
08/20/2007 (11:12 am)
U could try an move out mass and jumpforce from the datablock, and change this varaiables on the object just before the jump
#3
08/20/2007 (11:26 am)
Look at player.cc line 1565.
Player::updateMove(const Move* move)
That is where the jump functionality is defined. I would see how the current jump works, create a second jump function under that the existing one, and tie it to a different trigger.