Mario Style Jump Height

Tutorial Mario Style Jump Height 1.0

No permission to download
This script allows the player to control jumping height exactly like Mario Brothers, Revenge of Shinobi and similar platform games.

Note I recorded the demo video live and it has some volume issues, my apologies.

Use​

  1. Place this function in the player model's onmoveascript. I recommend you keep the file separate and use the #import directive.
  2. Execute the function in main(). Supply it with the calling entity.
  3. The entity's jump height (to its normal maximum) is now tied to length of Jump button press.

Example​


C:
#import "data/scripts/dc_mario_height_control.c"

void main()
{
    void acting_entity = getlocalvar("self");

    /*
    * Stop upward momentum if player releases jump key.
    */
    dc_mario_height_control(acting_entity);
}

Other Notes​

This is a very simple script. Try tweaking it to add even more jumping precision by stopping horizontal or lateral momentum when player releases directional keys.
Author
DCurrent
Downloads
23
Views
824
First release
Last update
Rating
5.00 star(s) 1 ratings

More resources from DCurrent

Back
Top Bottom