Hi all! :)
Is it possible to implement double jump for an active object using the standard platform movement (no platform movement object)? How can I do it?
Thank you in advanced for your answers! :)
Printable View
Hi all! :)
Is it possible to implement double jump for an active object using the standard platform movement (no platform movement object)? How can I do it?
Thank you in advanced for your answers! :)
Yes, use Upon Pressing Fire 1 (from the player 1 joystick object): Change movement to movement #1
EDIT: I made an example:
http://mfa.aquadasoft.com/view/1283786990-InfJump
Or there's another way!
You could use another active and paste it into the background as an obstacle, and limit it a certain way, and also delete it right away! :)
I had an example at one point.
Thank you very much for your .mfa! :)
But I still need a little help. I don't want the character to have infinite jump, but just double jump. So I modified your example with these events:
Active collides with the background
-Active bounce
-Active: set internal flag 0 on
Pressed Fire1 + Active internal flag 0 on
-Active: select Movement #1
-Active: set internal flag 0 off
The problem is I need a third condition in the second event, something like "Active is NOT colliding with the background". How can I do it?
Thank you again for your help! :)
Yeah! I did it! :D
I write here my events so that it can be useful for someone else:
Start of frame
Active: set internal flag 0 off
Active: set internal flag 1 off
Active collides with the background
Active: bounce
Active: set internal flag 0 on
Active: set internal flag 1 off
Pressed fire 1
+Active: internal flag 1 is on
Active: select Movement #1
Active: set internal flag 1 off
Pressed fire 1
+Active: internal flag 0 is on
Active: set internal flag 1 on
Active: set internal flag 0 off
Flag 0 is on when the active object is on the floor, flag 1 is on when it is possible to do double jump.
Thank you for your tip of making: "Select movement #1"! :)