Views: 660,609,038
13 users online: 9852, Bloondecreeper, Green Jerry, Mackan, o Manofer, Minegamezz, randombot999, o RPG Hacker, RussianMan, Super Maks 64, ThirdWall, o underway, yoshisisland - Guests: 55 - Bots: 687Users: 35,379 (1,258 active)
Latest: Minegamezz
Not logged in.
Level ender sprite ('rewards ')
Forum Index - SMW Hacking - SMW Hacking Help - Level ender sprite ('rewards ')
Pages: « 1 »
I have a rather niche question.

I'm modifying the level_ender sprite built into PIXI. I want Mario to receive a 1-up if he has big, fire or cape after he has finished a boss dungeon full of enemies. It's a reward for completing a difficult section without taking damage.

However, it crashes the game upon finishing the level, but only when Mario is big/fire/cape. I'm not sure what could be causing this issue. I checked the RAM map and all the addresses seem to be correct.

The modified sprite is here:

I'm a newbie to ASM so I apologise if this is a dumb question.

Thank you for your replies.
                INC $0DBE    ; lives counter

That RTS is your problem, the code is called via JSL and must return using RTL.
Also you'll want to move the state check & branch code to the bottom of .continue, otherwise the sprite will just continuously loop through RewardMario and never follow through with the rest of the code.
Also also you should check if the player already has 99 lives before adding the live, so that the counter doesn't overflow in that case

My Youtube channel

Currently working on:
Project C

Finished project:
Better yet: Replace $0DBE with $18E4. That way, the lives increase one by one and a sound effect also plays.

You can also call to me as MFG or Manuel but not Mario.
Pages: « 1 »
Forum Index - SMW Hacking - SMW Hacking Help - Level ender sprite ('rewards ')

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2018 - SMW Central
Legal Information - Privacy Policy - Link To Us

Total queries: 23


Follow Us On

  • Facebook
  • Twitter
  • YouTube


  • Talkhaus
  • SMBX Community
  • GTx0
  • Super Luigi Bros
  • MFGG
  • Gaming Reinvented