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

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9888
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

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

Postby Emral » Sat Oct 19, 2019 7:31 am

Download:
https://pastebin.com/UQBXiG1P

anotherwalljump.lua refurbishes an old walljump script I wrote in 2017. Its aim is to basically just replace Sturg's and PixelPest's libraries, neither of which ever had strong voices backing them, especially now that they're fairly old.

Features:
- 2-Player compatibility
- Different walljump settings per character ID (optional)
- Some customizability.

Gif:
Spoiler: show
Image
Most simple usage example:
local aw = require("anotherwalljump")
aw.registerAllPlayersDefault()

This enables walljumps with the default settings for the 5 default characters. Default settings can be viewed in the file.
Further customization commented in the file.

Taycamgame
Gold Yoshi Egg
Gold Yoshi Egg
Posts: 1483
Joined: Mon Jun 19, 2017 11:35 am
Flair: Stargard
Contact:

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

Postby Taycamgame » Sat Oct 19, 2019 11:02 am

Another one bites the dust
Anyway, I'm going to be using this in my upcoming project. Totally coincidental that you release this just before I started making any levels for it.
So if I just want to use the default settings I just leave the lua file alone?

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9888
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

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

Postby Emral » Sat Oct 19, 2019 11:05 am

You don't have to touch anything in the lua file unless you want to modify the library beyond the options that are accessible from the outside. Anything prefixed with aw in the file is something you can access and modify from outside. The library won't do anything if it's just loaded, since characters have to be explicitly registered. Either like done in my example, or using the registerCharacter function.

Cedur
Link
Link
Posts: 7073
Joined: Tue Jun 28, 2016 10:14 am
Flair: I'm gone, for chess and minesweeper
Pronouns: he/him

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

Postby Cedur » Sun Oct 20, 2019 7:33 am

This looks like the walljump mechanic in Hanzo Castle from Grand Poo World 2, nice

MarioLover64
Spike
Spike
Posts: 259
Joined: Fri Apr 26, 2019 6:09 pm

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

Postby MarioLover64 » Fri Nov 29, 2019 5:41 pm

I cant crouch

Added in 1 minute 10 seconds:
I bounced on a noteblock and now I cant crouch until I walljump

MarioLover64
Spike
Spike
Posts: 259
Joined: Fri Apr 26, 2019 6:09 pm

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

Postby MarioLover64 » Sat Nov 30, 2019 12:45 pm

Turns out the real problem was that sliding but not jumping took my ability to crouch

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9888
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

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

Postby Emral » Mon Dec 02, 2019 12:37 am

Fixed a bug where latching onto a wall would disable the player's ability to slide until a spinjump was performed.

Taycamgame
Gold Yoshi Egg
Gold Yoshi Egg
Posts: 1483
Joined: Mon Jun 19, 2017 11:35 am
Flair: Stargard
Contact:

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

Postby Taycamgame » Mon Dec 02, 2019 3:04 pm

Enjl wrote:
Mon Dec 02, 2019 12:37 am
Fixed a bug where latching onto a wall would disable the player's ability to slide until a spinjump was performed.
BTW idk if you saw me mention before but there's a weird bug that happens if you climb on a climbable (such as fences or vines). You won't be able to wall jump / slide down walls after climbing on something regardless of button presses etc. It's weird because those seem to be completely unrelated?

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9888
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

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

Postby Emral » Mon Dec 02, 2019 3:24 pm

I don't see that bug report when scrolling up the thread. I'll look into it when I have time to.

Taycamgame
Gold Yoshi Egg
Gold Yoshi Egg
Posts: 1483
Joined: Mon Jun 19, 2017 11:35 am
Flair: Stargard
Contact:

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

Postby Taycamgame » Mon Dec 02, 2019 3:33 pm

Enjl wrote:
Mon Dec 02, 2019 3:24 pm
I don't see that bug report when scrolling up the thread. I'll look into it when I have time to.
I reported it in Codehaus a while ago. Tbh I probably should have mentioned it here :/

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9888
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

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

Postby Emral » Tue Dec 03, 2019 12:18 am

Fixed a bug where Mario wouldn't be able to forget what he climbed on, shell-shocking him into being unable to touch walls.

Reign
Chain Chomp
Chain Chomp
Posts: 327
Joined: Tue Jan 21, 2014 4:22 am

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

Postby Reign » Thu Dec 05, 2019 5:22 am

Looks great, will use it. Thanks.

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9888
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

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

Postby Emral » Sat May 30, 2020 2:56 am

Hello!
I have updated the code.
The new version fixes an issue where you were able to slide down lava, hurt and some invisible blocks.
As a consequence of this, you can no longer slide down spikes and munchers either by default. If your level relied on that, I built a solution for you, though:
(where aw is shorthand for anotherwalljump or whatever you load it as in your code)
Using the functions aw.whitelist(id) and aw.blacklist(id) you can make any block you wish wallslidable, or prevent any usually wallslidable block from being just that.
That way, lava, spikes, nonsolid blocks, or even sizables can become wallslidable surfaces in your levels (though initiating a wallslide on one might be very dangerous or sometimes impossible).

Enjoy!

Lusho
Blooper
Blooper
Posts: 163
Joined: Wed Dec 25, 2019 11:39 pm
Flair: Intention is what matters
Pronouns: he/him

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

Postby Lusho » Sat May 30, 2020 9:37 pm

Does this fix the tail timer problem? its kinda annoying not being able to tail swipe when using this.

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9888
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

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

Postby Emral » Sun May 31, 2020 2:16 am

CJ_RLushi wrote:
Sat May 30, 2020 9:37 pm
Does this fix the tail timer problem? its kinda annoying not being able to tail swipe when using this.
No, because I can only fix bugs I'm aware of, and nobody informed me of that issue before. Best way to let me know is by posting in this topic.
I will get to fixing that one momentarily.

E: Fixed.

chasey1237
Shy Guy
Shy Guy
Posts: 9
Joined: Sat Nov 03, 2018 4:02 pm

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

Postby chasey1237 » Fri Jun 12, 2020 2:09 am

the script is not doing anything :(

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9888
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

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

Postby Emral » Fri Jun 12, 2020 2:55 am

chasey1237 wrote:
Fri Jun 12, 2020 2:09 am
the script is not doing anything :(
Did you follow the "most simple usage example" in the first post?

chasey1237
Shy Guy
Shy Guy
Posts: 9
Joined: Sat Nov 03, 2018 4:02 pm

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

Postby chasey1237 » Mon Jun 15, 2020 3:56 am

i was testing! also i only needed it for a single fucking star coin placement that i scrapped anyway cause im a fucking idiot! but legit i keep forgetting stuff!
Last edited by aero on Mon Jun 15, 2020 3:43 pm, edited 1 time in total.
Reason: User notified about post.

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9888
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

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

Postby Emral » Mon Jun 15, 2020 3:59 am

I have no idea what you're talking about... oh you edited the post to remove any reference to memes.
If you need me to help explain something, it would help if you described your problem clearly so I have an idea of how to help out.

iAmGod01
Hoopster
Hoopster
Posts: 40
Joined: Wed May 20, 2020 8:37 am
Flair: Assemble pixel art

i have a problem with enji's anotherwalljump script

Postby iAmGod01 » Thu Jul 02, 2020 10:21 am

good afternoon guys i was trying to use enji's anotherwalljump script but i have these errors
Image

Image

well I will leave here also the print of the moon file anyone if you know can help me


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 5 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari