Name: | Action on Enemy Defeat |
Author: | Kevin |
Added: | |
Type: | Level |
Includes GFX: | No |
Includes Hijack: | No |
Featured: | No |
Description: | This UberASM will run an action whenever Mario defeats an enemy (killed by jumping on them, with cape, shells, star, sliding etc.). You can choose between some premade options (switch ON/OFF, hurt Mario, give coins or time) or add your own code. Check the asm file for additional information. Requires 12 bytes of freeram (22 on SA-1). Note that it doesn't work for enemies burnt with fireballs (besides Chucks, because they don't turn into coins). |
Tags: | lorom on-off sa-1 sprite |
Comments: | 1 (jump to comments) |
Rating: |
Download
1.51 KiB | 81 downloads
Comments (1)
I added an else clause to the action conditional raising an error if choosing invalid values for the action and/or the value (e.g., action > 5 or action 3, add coin, with value 0), which would otherwise crash the game. I also added the allowed values for coins (1-255) and time (> 0) in the comments describing action values.
Simple and easy to use UberASM. Worth noting that:
It might be interesting adding an allow/disallow list for limiting the behaviour only to a particular set of sprites, but this is just a random thought.