double jump issue Help

kajutokajuto Member Posts: 314
edited July 2012 in Miscellaneous
hi there everyone! recently in my project, i did the double jump button and double jump with A (keyboard) and also i create a actor called Power Up, that when the hero collide with the Power Up actor, it will jump for certain time, but after it collide with the power up actor the hero don't jump double when i pressed A nor Jump Button

Hero Actor:

Rule: ( when turn off this, it can jump double)
Att. Game.JumpButton is true
Att. Self.Jumps = 1
-change att: self.jumps to self.jumps+1
-self.motionlinearvelocity to 350

Rule: self.jumps 1
-att self.jumps = 1
-change att. self.motion.linear.velocity to 350
Otherwise:
Rule: self.jumps 2
-att self.jumps= 2
-change att. self.motion.linear.velocity to 350

Power Up Button:

Rule: collide with hero to destroy this actor and particles xf
-spawn actor (for particles effects)
-after 2 sec destroy

i just want when the hero collide with the power up, the hero can do the double jump for certain amount of sec

thanks in advance!! i appreciatte it.
Sign In or Register to comment.