Main > Code > ASM > Object > Movement Scripts

Double Jump: varDoubleJumpRelease.asm

Submitter: wolfmerrik



Description: This script will be called when the "A" button is released

For more details on how to use this, check out this thread:

http://nesmakers.com/viewtopic.php?f=28&t=772

To use this, you will need to add both these lines to SystemVariables:

canDoubleJump .dsb 1

didDoubleJump .dsb 1

This file is one of the three files needed for this to work:

https://www.nesmakerfiles.com/resource/double_jump_playerdoublejumpasm

https://www.nesmakerfiles.com/resource/double_jump_playerdoublejumppressasm

https://www.nesmakerfiles.com/resource/double_jump_vardoublejumpreleaseasm


Credits: Once again, if you find a great use for this, please feel free to share it on the thread above!

Links:

http://nesmakers.com/viewtopic.php?f=28&t=772

https://www.nesmakerfiles.com/resource/double_jump_playerdoublejumpasm

https://www.nesmakerfiles.com/resource/double_jump_playerdoublejumppressasm

https://www.nesmakerfiles.com/resource/double_jump_vardoublejumpreleaseasm


Tags: doublejump, jump, platformer

ASM Preview:

;  This modifies the original code included in the Platform Tutorial to

;  allow for double jumps. This was created by WolfMerrik, and is the

;  lets call it version 1.1, as this is the first revision

;  for info on using it, check out: http://nesmakers.com/viewtopic.php?f=28&t=744&start=10



LDA #$01

STA canDoubleJump ;  Lets set this now, so we can do it.

LDA #$00 ;  Its always good to start at 0

SEC

SBC #$02 ;  I chose 2 over the tutorials 3 because I wanted lighter/tighter jumps


; This is an incomplete preview.
; Download for the full code


Download: Here

Size: 614 B

Downloads: 100 (1 Users)

Rating: This has not been rated yet

Rate:


Comments:


There are no comments yet.

Share:


Loading...