Game Development Community

Apply impulse + JUMP? (could i work this into homing attack?)

by Wolf Okami · in Torque Game Engine · 02/21/2009 (4:11 pm) · 22 replies

Can you translate this into code for me

I was wondering if you can add an apply impulse function to the character after the jump action.

I need applyimpulse(,) function after the jump action

like:

Jump=Jump
but,
Jump+Jump=Jump x boost forward
I would also if possible like you to add these if you can:
-a lock on function to a certain dts shape
-and a damage function

Also Im using TGE do i have to upgrade to TGEA?
Page«First 1 2 Next»
#21
03/22/2009 (5:54 pm)
Ok now how would i apply impulse to player would it be %player.applyImpulse(...)
or
%obj.player.applyImpulse(...)
or ami completely wrong
#22
05/16/2009 (2:38 pm)
Ok then but how would i map it to the jump key

obj.applyImpulse.onJump(...)

also when you say object id do you mean playerblock or hergh im lost
Page«First 1 2 Next»