I've been using the ground pound for a bit now and wish to change the the ground pound trigger from down to my alt run. Initially I tried doing this myself by changing the two instances of 'down' to 'altRun' but no results. I modified the following code:
Code: Select all
local function thePound(i)
if not isPounding[i] and timeSinceLastPound[i] >= groundPoundNeue.preventPoundForTime then
registeredCharacters[players[i].character].prepareAnim:play(players[i]);
Audio.playSFX(getSMBXPath().."\\sound\\zelda-stab.ogg");
isPounding[i] = true;
alreadyTriedToPound[i] = true;
timeSinceLastPound[i] = 0;
stillAtY[i] = players[i].y;
stillAtX[i] = players[i].x;
players[i].speedX = 0
if inputs.state[i].down == inputs.PRESS then
delayTimer[i] = 0;
players[i]:mem(0xE8,FIELD_DFLOAT, 0);
end
end
end
local function inputUpdateRun(o)
if not isDoingBannedStuff[o] and
registeredCharacters[players[o].character].enabled then
if inputs.state[o].down == inputs.PRESS then
thePound(o);
end
if isPounding[o] and
(inputs.state[o].up == inputs.PRESS) then
isPounding[o] = false;
alreadyTriedToPound[o] = false;
Audio.playSFX(getSMBXPath().."\\sound\\hammer.ogg");
end
end
end
I want to replace the key because I think mid-air crouching is important, and I also want to have the game play more like most modern Mario games where a separate button becomes ground pound (like ZL or something in newer games).
Thank you.