anotherwalljump.lua - I still don't get why people like Walljumps in Mario

Share and discuss custom LunaLua code and content packs for SMBX2.

Moderator: Userbase Moderators

Mushroom King
Flurry
Flurry
Posts: 187
Joined: Sun May 25, 2014 5:09 am

Re: anotherwalljump.lua - I still don't get why people like Walljumps in Mario

Postby Mushroom King » Sat Jul 12, 2025 3:55 pm

Is there a way to adjust the script so that the player must jump (no contact with the ground) and press the direction they are facing the wall in order to perform a wall jump, rather than simply touching it?

John Nameless
2025 Egg Hunter
2025 Egg Hunter
Posts: 121
Joined: Mon Jul 10, 2023 11:40 pm
Flair: vidio gaem

Re: anotherwalljump.lua - I still don't get why people like Walljumps in Mario

Postby John Nameless » Sun Jul 13, 2025 5:14 am

Mushroom King wrote:
Sat Jul 12, 2025 3:55 pm
Is there a way to adjust the script so that the player must jump (no contact with the ground) and press the direction they are facing the wall in order to perform a wall jump, rather than simply touching it?

Code: Select all

-- put the following in your luna.lua file of your level/episode
function onInputUpdate()
    if aw and aw.isWallSliding(player) and (not player.keys.right and not player.keys.left) then
        aw.preventWallSlide(player)
    end
end

Mushroom King
Flurry
Flurry
Posts: 187
Joined: Sun May 25, 2014 5:09 am

Re: anotherwalljump.lua - I still don't get why people like Walljumps in Mario

Postby Mushroom King » Sun Jul 13, 2025 1:27 pm

Thanks!


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 9 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari