Kuribo64
Views: 7,029,200 Home | Forums | Uploader | Wiki | Object databases | IRC
Rules/FAQ | Memberlist | Calendar | Stats | Online users | Last posts | Search
06-26-17 08:19 AM
Guest:

0 users reading Spin Jump on Command ASM Hack | 1 bot

Main - General SM64DS hacking - Spin Jump on Command ASM Hack New reply


Sparsite
Posted on 07-30-16 10:28 PM (rev. 2 of 07-30-16 10:30 PM) Link | #75374
This is similar to the spin jump mechanic Kaze programmed in Super Mario Bros 3D, but in this you don't have to long jump. I could've programmed it identical to the Super Mario Bros 3D mechanic but since this is just a concept, I thought I would just keep it basic for now.

Unfortunately, I can't change the button press from B+L because I dont understand how button presses work, so the camera trys to center behind the player when you spin jump which kinda fucks it up.

VIDEO:


Hmm... just realizing the fall speed is a little too fast, I will fix it if I ever update this.

Source Code:

//Spin Jump On Command By Sparsite
#include "SM64DS.h"

const unsigned short B_AND_L_KEYS_PRESSED = 0x10D;
const unsigned int ACT_LOOP = 0;
const unsigned int ACT_RUN_ONCE = 0x40000000;
bool inSpinJumpMethod = false;

//PLAYER->yRot = PLAYER->yRot + 100000; make player face oppisite direction

void hook_020e50ac()
{
if (CHARACTER == CHAR_Luigi) //If the character is Luigi
{
unsigned short keys = KEYS;
unsigned short pressedB = keys & 0x00F;
unsigned short pressedLAndR = keys & 0xF00;
unsigned short checkPressedBAndL = (pressedB | pressedLAndR);
if (checkPressedBAndL == B_AND_L_KEYS_PRESSED) //If the B and L keys are pressed
{
if (inSpinJumpMethod == false)
{
inSpinJumpMethod = true;
}
}
}

if (inSpinJumpMethod == true)
{
Player_PerformAction (PLAYER, 0x5F, ACT_RUN_ONCE, 0x1000);
PLAYER->yRot = PLAYER->yRot + 10000;
PLAYER->ySpeed = -0x000010000;
}

if (PLAYER->isOnGround & inSpinJumpMethod)
{
inSpinJumpMethod = false;
}
}


____________________
ASMR:
*quietly whispers*
move r0 r7
push r4 to r14
load register r4 into r0
POP

pacmainia&luigi
Posted on 08-05-16 10:06 AM Link | #75698
You should make it so that if you try it on ground, it makes a spindrift spawn directly below the player (mario, yoshi, luigi, wario)

____________________
Waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka.........

Sparsite
Posted on 08-05-16 10:53 AM Link | #75699
Posted by pacmainia&luigi
You should make it so that if you try it on ground, it makes a spindrift spawn directly below the player (mario, yoshi, luigi, wario)


spawn a spindrift under the player? wut?

____________________
ASMR:
*quietly whispers*
move r0 r7
push r4 to r14
load register r4 into r0
POP

pacmainia&luigi
Posted on 08-06-16 03:46 PM (rev. 4 of 08-06-16 03:50 PM) Link | #75758
Posted by Sparsite
spawn a spindrift under the player? wut?

Makes mario actually jump and doesn't have to side flip, back flip, long jump, etc, making it more similar to the spin jump in super mario sunshine.

____________________
Waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka.........

Sparsite
Posted on 08-06-16 04:07 PM (rev. 2 of 08-06-16 04:11 PM) Link | #75761
I can already make it like that without a spindrift. Plus that'd be shitty cause you would see the spindrift for a split second, and it's requires an object bank as far as I know.

____________________
ASMR:
*quietly whispers*
move r0 r7
push r4 to r14
load register r4 into r0
POP

pacmainia&luigi
Posted on 11-19-16 05:17 PM Link | #79783
why does it only work with luigi?

____________________
Waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka.........

Sparsite
Posted on 11-19-16 05:33 PM Link | #79784
Posted by pacmainia&luigi
why does it only work with luigi?


Because this was based off of Kaze's Super Mario Bros. 3D hack and only Luigi can spinjump

____________________
ASMR:
*quietly whispers*
move r0 r7
push r4 to r14
load register r4 into r0
POP

MC708
Posted on 11-20-16 03:50 PM Link | #79800
Just alerting you that the video apparently 'Does not exist'. Other than that, very impressive ASM work!

____________________
[image]

pacmainia&luigi
Posted on 11-20-16 03:54 PM Link | #79802
Posted by MattCrafter
Just alerting you that the video apparently 'Does not exist'. Other than that, very impressive ASM work!

Yeah, his channel got deleted.

____________________
Waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka.........


Main - General SM64DS hacking - Spin Jump on Command ASM Hack New reply

Page rendered in 0.082 seconds. (2048KB of memory used)
MySQL - queries: 28, rows: 207/207, time: 0.052 seconds.
[powered by Acmlm] Acmlmboard 2.064 (2015-10-07)
© 2005-2008 Acmlm, Xkeeper, blackhole89 et al.