28 users online:  AmperSam, autisticsceptile1993, Bully With A Hat, Children's Digest 1950-2009, danielajace, DashGamer,  DeppySlide, Enan63,  Fernap, Freitasth, GangsterJerby, Hexagonaldonut, Impetus, javicule, Jern, JupiHornet,  Losoall, MiracleWater, mothraLau, NewPointless,  RussianMan, RZRider, SAMYR DUTRA ARAUJO,  sincx, TheCrazyBuzzyBeetle, WhiteYoshiEgg, xfix, Zavok - Guests: 98 - Bots: 904
Users: 55,025 (2,222 active)
Latest user: Nekyo21

Reverse Controls

UberASM Repository → Reverse Controls

Submission Details

Name: Reverse Controls
Author: Nowieso
Type: Level, Game Mode
Includes GFX: No
Includes Hijack: No
Featured: No
Description: This is a very user-friendly code that lets you switch certain buttons on the controller.

You can switch controls based on:
- Nothing - always switch the controls
- ON/OFF Switch
- P-Switch
- Star-Power
- Yoshi
- Water
Feel free to submit more options!

This code might be useful to create a unique ghosthouse/ghost themed level.

Set your options in the asm file!!!

Credit is optional, just don't claim it as your own.
Tags: abilities controller controller button lorom mario on-off-switch p-switch sa-1 star water yoshi
Comments: 4 (jump to comments)
5.0 (1 rating)
No rating
Download 1.43 KiB | 401 downloads


Comments (4)

ninj Link
can you switch it for getting a 1up?
Romano338 Link
I really was expecting the possibility to reverse all controls, like the YBAX buttons
 Major Flare Link
Update: Added image.
 Telinc1 Link
This is quite impressive for a first submission. The code is a little hard to follow but it works quite well. I should note that setting two choices to the same options (such as switch left/right for both states of the ON/OFF switch), the code will refuse to insert - I didn't count this as a rejection reason because it's an edge case which is unlikely to come up in practice.

During the moderation, I added SA-1 compatibility and removed a few unnecessary branching instructions to slightly speed up the code. Ideally, the code should be swapped to optimize it even further (taken branches add an extra cycle).

A future suggestion could be to clean up all the magic numbers to make this code even more user-friendly. Remember: Asar defines can be absolutely anything and can also substitute anything, not just numbers.