News: 11 March 2016 - Forum Rules
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia, Danke

Author Topic: How to change Mario's jump height and Gravity?(Super Mario Bros 1 NES)  (Read 1390 times)

benajminpants

  • Newbie
  • *
  • Posts: 3
    • View Profile
I made some simple Rom hacks before. Like graphic changes a few level changes. But I want to change the jump height of Mario and maybe even his gravity? I am using FCEUX's hex editor. So where in the games ROM does it say how high Mario should jump or how much Y it takes away when it is in the air?

Teeporage777

  • Jr. Member
  • **
  • Posts: 77
  • rom hacker of mario games
    • View Profile
Re: How to change Mario's jump height and Gravity?(Super Mario Bros 1 NES)
« Reply #1 on: August 31, 2017, 07:20:35 pm »
Jumps
Note: The lower the value, the higher the jumps. Experiment!
Standing:
Offset $3634(tsv) $3434(ntsv)
20 - normal
19 - Luigi jumps
00 - float up as long as you hold the button
I'm not sure what the next byte means but set it to whatever you put standing jumps as.
Walking:
Offset $3636(tsv) $3436(ntsv)
1E - Normal
19 - Luigi jumps
00 - float up as long as you hold the button.
I'm not sure what the next byte means but set it to whatever you put the running jumps as
Running: Offset $3638(tsv) $3438(ntsv)
28 - Normal
21 - Luigi jumps
00 - float up as long as you hold the button. (this is from a document from DarKnight13) hope it helps
"..But it doesn't matter. Nothing matters anymore.."

benajminpants

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: How to change Mario's jump height and Gravity?(Super Mario Bros 1 NES)
« Reply #2 on: September 01, 2017, 11:36:21 am »
I just read your post. And $3634? I searched for the location all over my hex editor. I am using FCEUX's default hex editor BTW.
The closest I can get is 003630...
Can you say it in a different way? I am kind of new to hex editing. I am not new to rom hacking. Just new to hex editing...
Am I getting this wrong?

KingMike

  • Forum Moderator
  • Hero Member
  • *****
  • Posts: 6855
  • *sigh* A changed avatar. Big deal.
    • View Profile
Re: How to change Mario's jump height and Gravity?(Super Mario Bros 1 NES)
« Reply #3 on: September 01, 2017, 12:35:51 pm »
Hex editors usually display in multiples of $10.

So $3634 means go down to $3630 and then right 4.
"My watch says 30 chickens" Google, 2018

benajminpants

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: How to change Mario's jump height and Gravity?(Super Mario Bros 1 NES)
« Reply #4 on: September 01, 2017, 12:40:24 pm »
Hex editors usually display in multiples of $10.

So $3634 means go down to $3630 and then right 4.
Thank you!

Teeporage777

  • Jr. Member
  • **
  • Posts: 77
  • rom hacker of mario games
    • View Profile
Re: How to change Mario's jump height and Gravity?(Super Mario Bros 1 NES)
« Reply #5 on: September 01, 2017, 11:08:22 pm »
glad it worked out. also look up in the document section of rhdn and look up the document from a user named DarKnight13, it is really useful
"..But it doesn't matter. Nothing matters anymore.."