12 users online: anonimzwx, Dolo, ExtraCheese53,  Hooded Edge, Lexzy24, Moltz, MrDeePay, Natsuz2, Nciktendo, Red2010, RZRider,  xHF01x - Guests: 107 - Bots: 191
Users: 62,817 (2,618 active)
Latest user: Kaputon

Hurt/Kill on Button Press by JamesD28

File Name: Hurt/Kill on Button Press
Submitted: by An undefined custom sprite.
Authors: An undefined custom sprite.
Type: Level
Includes GFX: No
Includes Hijack: No
Featured: No
Description: This UberASM allows you to set up a combination of buttons that will hurt or kill Mario when pressed. You can set the logic to hurt/kill when any of the selected buttons are pressed, or when all of the selected buttons are pressed. If using the latter, keep in mind that some combinations may not be possible in practice due to controller/keyboard limitations.
By default, it is set to kill Mario when left or right are pressed.

Requested by DasFueller.
Tested with:
- UberASMTool 1.4
- SA-1 1.32
- Lunar Magic 3.21
- ZMZ 1.08

It is a fine code as is, but, being simple enough, some issues made me not accept it. The reason? Let's say I want to set Mario to be killed when, and only when, the player presses B + Right. Your code, as is, does not allow this setting, because if you set it to do so, the combination A + Right would kill Mario as well. The same can be said about X + Right versus Y + Right, for instance. A minor logic work can be done to fix this, thus enabling this code to be accepted.