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

Share and discuss custom LunaLua code and content packs for SMBX2.
Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 8569
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

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

Postby Enjl » 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.
The ABC of Creation
________________________________________________________
Image

User avatar
Taycamgame
Gold Yoshi Egg
Gold Yoshi Egg
Posts: 1370
Joined: Mon Jun 19, 2017 11:35 am
Flair: Stargard
Current Project: Mario's Kingdom Adventure
Chat Username: Taycamgame
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?
Official Level Reviewer (My Gold Yoshi Egg rank replaced the level reviewer icon, but i am still a level reviewer).
Image
Image
Image
Image
Check out the World Map Service that i host:
viewtopic.php?p=316733#p316733
Check out the projects i support:
Spoiler: show
ImageImage
Image
Image
Quotes: show
xDestroy wrote:
Wellington Games wrote:Taycamgame, I know how to take screenshots in the SMBX.
https://nsmbx.proboards.com/
------
Tower Mario Bros.

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 8569
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

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

Postby Enjl » 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.
The ABC of Creation
________________________________________________________
Image

User avatar
Cedur
Toad
Toad
Posts: 6386
Joined: Tue Jun 28, 2016 10:14 am

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
Image
More Supports: show

Image
Image

Still using the legacy editor? Get SMBX2 and PGE, it will improve your experience significantly. Here's why. And remember, Yoshis are tools to be used and discarded.

ShadowStarX (06/14/18) wrote: South Korea is easy deal

MarioLover64
Hoopster
Hoopster
Posts: 169
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
Hoopster
Hoopster
Posts: 169
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

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 8569
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

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

Postby Enjl » 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.
The ABC of Creation
________________________________________________________
Image

User avatar
Taycamgame
Gold Yoshi Egg
Gold Yoshi Egg
Posts: 1370
Joined: Mon Jun 19, 2017 11:35 am
Flair: Stargard
Current Project: Mario's Kingdom Adventure
Chat Username: Taycamgame
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?
Official Level Reviewer (My Gold Yoshi Egg rank replaced the level reviewer icon, but i am still a level reviewer).
Image
Image
Image
Image
Check out the World Map Service that i host:
viewtopic.php?p=316733#p316733
Check out the projects i support:
Spoiler: show
ImageImage
Image
Image
Quotes: show
xDestroy wrote:
Wellington Games wrote:Taycamgame, I know how to take screenshots in the SMBX.
https://nsmbx.proboards.com/
------
Tower Mario Bros.

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 8569
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

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

Postby Enjl » 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.
The ABC of Creation
________________________________________________________
Image

User avatar
Taycamgame
Gold Yoshi Egg
Gold Yoshi Egg
Posts: 1370
Joined: Mon Jun 19, 2017 11:35 am
Flair: Stargard
Current Project: Mario's Kingdom Adventure
Chat Username: Taycamgame
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 :/
Official Level Reviewer (My Gold Yoshi Egg rank replaced the level reviewer icon, but i am still a level reviewer).
Image
Image
Image
Image
Check out the World Map Service that i host:
viewtopic.php?p=316733#p316733
Check out the projects i support:
Spoiler: show
ImageImage
Image
Image
Quotes: show
xDestroy wrote:
Wellington Games wrote:Taycamgame, I know how to take screenshots in the SMBX.
https://nsmbx.proboards.com/
------
Tower Mario Bros.

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 8569
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

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

Postby Enjl » 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.
The ABC of Creation
________________________________________________________
Image

User avatar
Reign
Ripper II
Ripper II
Posts: 320
Joined: Tue Jan 21, 2014 4:22 am
Current Project: Yet untitled.

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.
Episodes released:

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 8569
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

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

Postby Enjl » 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!
The ABC of Creation
________________________________________________________
Image

User avatar
CJ_RLushi
Bit
Bit
Posts: 145
Joined: Wed Dec 25, 2019 11:39 pm
Flair: Intention is what matters
Current Project: Another Super Mario Bros. 3 Remake [SMBX2]

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

Postby CJ_RLushi » 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.
My episode lol:
Image

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 8569
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

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

Postby Enjl » 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.
The ABC of Creation
________________________________________________________
Image

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

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 :(

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 8569
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

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

Postby Enjl » 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?
The ABC of Creation
________________________________________________________
Image

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

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.

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 8569
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

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

Postby Enjl » 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.
The ABC of Creation
________________________________________________________
Image

User avatar
iAmGod01
Spiny
Spiny
Posts: 40
Joined: Wed May 20, 2020 8:37 am
Flair: Assemble pixel art
Current Project: Super Mario Adventure 1
Chat Username: iAmGoD01

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 2 guests