Language…
6 users online: drkrdnk, GRIMMKIN, JezJitzu, Nemesis1407, Pink Gold Peach,  Segment1Zone2 - Guests: 243 - Bots: 276
Users: 64,795 (2,376 active)
Latest user: mathew

Reverse Gravity

SMW Patches → Reverse Gravity

Submission Details

Name: Reverse Gravity
Author: MarioE
Added:
Version History: View
Tool: Asar
Requires Free Space: Yes
Bug Fix: No
Featured: No
Description: This patch allows the player to have reversed gravity. Included are two gravity blocks and two UberASM for levels for gravity controlled by on-off blocks and gravity controlled by controller button presses; read the readme for more details.
Tags: gravity lorom physics reversed sa-1 upside down
Comments: 21 (jump to comments)
Download 4.59 KiB | 1,289 downloads

Screenshots

View all

Comments (21)

Yoshioshi59_ Link
I used $0083ED at !flip_gravity and when i open my rom it lets me enter a level but when i touch a reverse gravity block it crashed. should i not use $0083ED there or is it another problem?
Hayashi Neru Link
This patch is not compatible lx5's custom power up patch
jesus angel Link
it was a good patch, besides, when i insetred the patch in my rom and then the blocks for gravity, the game crashes when the player touxhes the block
JonnyManjiro Link
I tried to use this with a retry system, but it carries over the gravity state after I retry. Anyone have any ideas to get around this?
 Blind Devil Link
I can definitely understand why many people can't get this to work - they either don't like Readme files, or they don't understand when it says the following:
Quote
Once this patch is inserted, asar should output "flip_gravity is located at: $location".

In order to flip gravity in your code, use JSL $location; modify the !flip_gravity defines in the included ASM.


And people end up overlooking this, and forget to change the !flip_gravity define.

That aside, I dislike this method either, since every time the patch is reapplied, that output address that is displayed in Asar tends to change. It'd be much better if the patch made a simple dummy JSL hijack in a fixed spot, thus making it not necessary to keep changing the damn ROM address define every time.
le4che Link
this doesnt work
EarlGrey Link
None of the patches seem to want to work
ModernKiwi Link
Originally posted by Kriogenic
As people have stated below the controlled_gravity has an error which causes it not to function correctly.
If you wish to use the controlled_gravity.asm version of this patch, remove lines 34 and 17 to make it work as intended.
Thanks, but is there a similar fix for on_off_gravity.asm?
Kriogenic Link
As people have stated below the controlled_gravity has an error which causes it not to function correctly.
If you wish to use the controlled_gravity.asm version of this patch, remove lines 34 and 17 to make it work as intended.
ModernKiwi Link
Originally posted by Nowieso
All the versions included in this patch are not working.
The controlled_gravity seems to double-trigger, the on_off_gravity softlocks the player and the blocks turn Mario invisible. I changed the freeRAM because I am using the SSPs, but there is definetly something wrong with this.

I share the same sentiments, I tried using this patch, specifically the On/Off Gravity, but every time I would hit an On/Off block, the game would crash.
This is a cool idea, I just wish it worked.
Nowieso Link
All the versions included in this patch are not working.
The controlled_gravity seems to double-trigger, the on_off_gravity softlocks the player and the blocks turn Mario invisible. I changed the freeRAM because I am using the SSPs, but there is definetly something wrong with this.
algae5 Link
I'm not certain what might have caused it, but the controlled_gravity version included seems to not function properly. The ON/OFF block version functions correctly and perfectly. But even on a clean ROM the controlled_gravity version will double trigger every time that I press any button that I assign to change gravity, such that Mario does an odd flip in place that clips through ledges and gravity remains whatever it was beforehand. As a result, it is impossible to ever switch gravity, only maintain whatever gravity direction it was before. My theory is it has to do with the freeRAM interaction, but I'm not entirely certain, my debugging was not conclusive.
System64 Link
Nice patch but if I change !reversed = ... To an other number than 60 (for compatibilitie with GHB's Screen Scrolling Pipes), it do strange things. I use FreeRAM
 Major Flare Link
Fixed some SA-1 conversion oversights and a define typo in one of the codes provide. Otherwise, it works just as stated in readme.
Akutarex Link
taporra
2pacWiddaD From older version: Reverse Gravity Link
I'm trying to do a VVVVVV type of level, but what i test the code, the screen turns black and freezes. can someone help me?

!flip_gravity = $909BC2

main:
LDA #$80 ;disable jump
TRB $16
TRB $18

LDA $16 ;check A and B buttons
BNE flip
LDA $18
BNE flip
RTL

flip:
LDA $7D
EOR #$FF
BEQ flip2
JSL !flip_gravity
STA $7D
RTL


flip2:
RTL
UltiMario From older version: Reverse Gravity Link
Figured I'd post this in case someone else ran into this issue: This patch is incompatible with the Slope Pass fix. If you already have slope pass installed and want to use this, use a hex editor to change $00EE87 to 10 and $00EED0 to 14 EE EF 13 A5 96.
HammerBrother From older version: Reverse Gravity Link
@IanBoy141

Did you look at the address it gives you when you apply using asar? That is the address used by the gravity blocks. Therefore, its default address is invalid, copy that code and paste that address as "!flip_gravity".
IanBoy From older version: Reverse Gravity Link
Crashes whenever i touch any of the 3 blocks!
Final Theory From older version: Reverse Gravity Link
Very cool!
HammerBrother From older version: Reverse Gravity Link
better than brutal mario; the bounceable blocks (bounce sprites when hit) always bounces upward despite the player is upsidedown.