Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hasDoubleJump_Player1 = true
- hasDoubleJump_Player2 = true
- function onLoad()
- hasDoubleJump_Player1 = true
- hasDoubleJump_Player2 = true
- end
- function onKeyDown(keycode)
- if(player.keycode == KEY_JUMP and player:mem(0x60, FIELD_WORD) == -1 and hasDoubleJump_Player1 and player:mem(0x108, FIELD_WORD) == 3)then
- player.speedY = -10
- hasDoubleJump_Player1 = false --If you have a yoshi,allow him to Double Jump!
- end
- if(player2.keycode == KEY_JUMP and player2:mem(0x60, FIELD_WORD) == -1 and hasDoubleJump_Player2 and player2:mem(0x108, FIELD_WORD) == 3)then
- player2.speedY = -10
- hasDoubleJump_Player2 = false --If you have a yoshi,allow him to Double Jump!
- end
- if(player.keycode == KEY_JUMP and player:mem(0x60, FIELD_WORD) == -1 and hasDoubleJump_Player1 and player:mem(0x112, FIELD_WORD) == 4)then
- player.speedY = -8
- hasDoubleJump_Player1 = false -- If you wear the Tanooki suit (or Racoon idk) allows us to double jump
- end
- if(player2.keycode == KEY_JUMP and player2:mem(0x60, FIELD_WORD) == -1 and hasDoubleJump_Player2 and player2:mem(0x112, FIELD_WORD) == 4)then
- player2.speedY = -8
- hasDoubleJump_Player2 = false -- If you wear the Tanooki suit (or Racoon idk) allows us to double jump
- end
- end
- function onJumpEnd()
- hasDoubleJump_Player1 = true
- hasDoubleJump_Player2 = true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement