Multi-Jump player script

Search for MultiJumpScript in the community packages tab, should consist of a script file, and two templates.
To use:
Attach the MultiJumpTemplate to the player template you wish to enable multiple jumps on.

Settings:

  • button : button to use for jumping (default is the jump button)
  • launchHeight: how high to jump each time (default is 1000 which is slightly higher than the players head)
  • maxNumJumps: how many jumps the player can make (including the one off the floor)
  • resetAnimationOnJump: reset fall animation on each successive jump

Events Fired:

  • OnJump - fires on each jump of the player : passed in params are the entity and the current jump number starting at 1
  • OnLand - fires when the player lands (z doesn’t change for 3 frames) : passed in params are the entity
5 Likes

New updates:
Added the following events:

  • OnJump - fires on each jump of the player : passed in params are the entity and the current jump number starting at 1
  • OnLand - fires when the player lands (z doesn’t change for 3 frames) : passed in params are the entity

Added a toggle for “resetAnimationOnJump”:
This option makes it so that the falling animation gets reset on each successive jump

resetAnimationOnJump == false : https://gyazo.com/3acd177033ec4af461c18c935f8b9722
resetAnimationOnJump == true : https://gyazo.com/99aac96bc9e43518f4dd0bad9cbbba0b

To upgrade to the new jump, simply click the checkmark. For a slight performance improvement set the property platformTemplate to JumpPlatformTemplate.

1 Like