Game Development Community

Quad jump

by Luke Smith · in Technical Issues · 10/26/2006 (7:04 am) · 4 replies

Hi all. I'm fairly new to torque and also to programming so i would appreciate someone pointing me in the

right direction with what I am trying to do. I have made minor adjustments to my game controls and the

gravity but what i want to do now is allow the player to jump multiple times mid jump. an example of this is in

unreal tournament. when jumping if you press spacebar again you jump again from mid air. if anyone can

help me with this i would really appreciate it.

thanks!

luke.

#1
10/26/2006 (7:06 am)
This resource is a good place to start. If you want to incorporate quad jumping, just tweak it where necessary. You may need to add

bool mTripleJumped;
bool mQuadJumped;
where bool mDoubleJumped; is inserted and do checks for each of those variables where mDoubleJumped is checked.

The resource does have you change the source code, so you may want to try what you can on your own and then ask for more help in this thread when you run into problems.


Good luck :]
#2
10/26/2006 (11:12 am)
Oh thanks pal this is exactly the sort of thing i was looking for. thanks alot. : )
#3
10/26/2006 (11:22 am)
Actually, since further discussion would require talking about source code, please move this question to a private forum.
#4
10/26/2006 (3:13 pm)
Its alright this is all I needed.

p.s sorry didnt realise this was in a public section of the forum.