Moon Jump

Started by Nutmeg, December 24, 2010, 01:02:29 AM

Previous topic - Next topic

Nutmeg

I have a pretty simple game to hack.  It's Animal Crossing for Game Cube, but I want to make a moon jump.  However, in this game, it's impossible to jump, or fall off a tall place, like the GLEE method recommends.  So, instead, I found the Y value (height) instead of the Y value speed, as the GLEE method reommends.

My code is structed like this, right now:

28XXXXXX 0000ZZZZ  //button activator
05XXXXXX YYYYYYYY  //Y floating point cooridinate (show by the Y's)
E00000000 80008000  //full terminator

Here's my problem:  When I press button ZZZZ, I jolt up to the Y coordinate.  I want to have a smooth moonjump where I can control the height.

What should I do?  I have tried ASM, but I don't know a command for adding floats.  Is there one?
--------------
Sorry for not providing the breakpoint or the DASM.  I will when I can, but that may be after Christmas...
I'm inbetween your legs... that's not awkward.

Romaap

There is a way to increase a floating point number with the Gecko Registers.
Just load it in a Gecko Register (82), use the Gecko Register Direct Value Operations codetype (86) with 9 as T (fadds), then just store the number back (84).

Nutmeg

Are you sure T = 9?  On the technical code sheet, it says A, and 9 doesn't do anything... hmmm....

Here is what I tried:

28XXXXXX 0000ZZZZ
8220000E 81XXXXXX
86A0000E 3F8000000
8420000E 81XXXXXX
E0000000 80008000

It just froze the game...
I'm inbetween your legs... that's not awkward.

dcx2

There is an updated codetype doc on the code database.  The other codetype doc had a few errors.

http://www.geckocodes.org/index.php?arsenal=1#88

T = 9 = fadds