Kuribo64
Views: 19,852,255 Home | Forums | Uploader | Wiki | Object databases | IRC
Rules/FAQ | Memberlist | Calendar | Stats | Online users | Last posts | Search
03-28-24 08:40 PM
Guest:

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

Main - General SM64DS hacking - Spin Jump on Command ASM Hack Hide post layouts | New reply


Sparsite
Posted on 07-31-16 02:28 AM (rev. 2 of 07-31-16 02:30 AM) 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 02:06 PM 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 02:53 PM 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 07:46 PM (rev. 4 of 08-06-16 07: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 08:07 PM (rev. 2 of 08-06-16 08: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 10: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 10: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 08:50 PM Link | #79800
Just alerting you that the video apparently 'Does not exist'. Other than that, very impressive ASM work!

____________________

Sorry for the maintenance -- we'll be back soon!

pacmainia&luigi
Posted on 11-20-16 08: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.........

Shugabush
Posted on 06-30-18 01:14 AM Link | #94884
which template do I use?

____________________
check out my CLPS Document: https://docs.google.com/document/d/11tHJ77km4EPITucU9RMdhW5ImPEvCyxPxUAbxqzm6Ks/edit


Main - General SM64DS hacking - Spin Jump on Command ASM Hack Hide post layouts | New reply

Page rendered in 0.034 seconds. (2048KB of memory used)
MySQL - queries: 29, rows: 219/219, time: 0.016 seconds.
[powered by Acmlm] Acmlmboard 2.064 (2018-07-20)
© 2005-2008 Acmlm, Xkeeper, blackhole89 et al.