TripleJump.lua - Triple Jump like a pro!

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

Moderator: Userbase Moderators

Master of Disaster
Swooper
Swooper
Posts: 64
Joined: Sun Nov 28, 2021 9:29 am
Flair: Average Koopa Fan
Pronouns: he/him

TripleJump.lua - Triple Jump like a pro!

Postby Master of Disaster » Sun Jul 16, 2023 6:44 am

TripleJump.lua v1.0 - by "Master" of Disaster

I implemented the Triple Jump from games like Mario 64 or the New Super Mario Bros Series. Be fast enough and chain three jumps to do a sick flip and jump higher than you would otherwise!
If you land a triple jump without holding in any direction, you will stop in place and play a fun little landing animation (given you registered one).
Jumping off of Enemies is supported!

How to register characters (in luna.lua)
Spoiler: show
tj = require("TripleJump") -- gotta load the library

tj.register(CHARACTER_MARIO, -- player character
{-1,15,1,13}, /"[spritesheetname].png" -- sprites for the second jump. You can insert string if you have a dedicated spritesheet, but also a table of frames if they are on the player's spritesheet
"mario-triplejump-spritesheet.png", -- sprites for the third jump. See the above
{9,8,8}, -- [OPTIONAL] landing sprites. See the above. NOTE: if is a dedicated spritesheet, it will stay on the last frame for a while!
8 -- [OPTIONAL] rotationspeed. By default 16° per frame, you can change it here to make it fit
)
-- Note: If you want to change the rotation speed but not add landing sprites, you just need to type nil to not provide any landing sprites

How it looks:
Spoiler: show
Mario got da tricks!
Image

You don't need custom spritesheets, you can also just use the ones on the default one, like Luigi!
Image

Toad is doing some fun things as well!
Image

Has this poked your interest?
Then here's the download link!
https://www.dropbox.com/scl/fo/dwnlobdc ... bu1gx&dl=0

Be as cool as Mario doing a front flip and credit me if used.

Blake Izayoi
Volcano Lotus
Volcano Lotus
Posts: 598
Joined: Sun Feb 23, 2014 1:55 pm
Flair: Sakuya's Husband
Pronouns: He / Him
Contact:

Re: TripleJump.lua - Triple Jump like a pro!

Postby Blake Izayoi » Sun Jul 16, 2023 4:58 pm

This is extremely cool!! I imagine this will be used to spice up levels and episodes in the future. Good work!

mariobrigade2018
Rocky Wrench
Rocky Wrench
Posts: 613
Joined: Wed May 24, 2023 7:00 pm
Flair: OK in coding who dreams of making a Mario game
Pronouns: he/him

Re: TripleJump.lua - Triple Jump like a pro!

Postby mariobrigade2018 » Sun Jul 16, 2023 7:25 pm

Great work! Can any of the characters use this?

Master of Disaster
Swooper
Swooper
Posts: 64
Joined: Sun Nov 28, 2021 9:29 am
Flair: Average Koopa Fan
Pronouns: he/him

Re: TripleJump.lua - Triple Jump like a pro!

Postby Master of Disaster » Mon Jul 17, 2023 9:53 am

mariobrigade2018 wrote:
Sun Jul 16, 2023 7:25 pm
Great work! Can any of the characters use this?
Yes! You just have to register the characters like in the luna.lua file. It may not mesh perfectly with other movement scripts or X2 characters but that should (mostly) only be some minor errors that should be easy to fix.

Wrath666
Cheep-Cheep
Cheep-Cheep
Posts: 13
Joined: Thu Dec 23, 2021 3:06 pm
Flair: Anger & Hatred
Pronouns: he/him

Re: TripleJump.lua - Triple Jump like a pro!

Postby Wrath666 » Sun Aug 06, 2023 9:39 am

Does this work properly with Toad's Double Jump (with Raccoon/Tanooki Tail) & Peach's Hover?

Master of Disaster
Swooper
Swooper
Posts: 64
Joined: Sun Nov 28, 2021 9:29 am
Flair: Average Koopa Fan
Pronouns: he/him

Re: TripleJump.lua - Triple Jump like a pro!

Postby Master of Disaster » Tue Aug 15, 2023 7:27 am

Wrath666 wrote:
Sun Aug 06, 2023 9:39 am
Does this work properly with Toad's Double Jump (with Raccoon/Tanooki Tail) & Peach's Hover?
I forgor to test that xDD
From testing it now though I can say that Peach's hover works perfectly fine (it doesn't interrupt your triple jump btw) and Toad's Double Jump kind of works?
You can double jump after the first jump and that actually counts as a second jump but when doing the second jump or triple jump you can't double jump anymore. I may streamline that in a future update

Ibaka
Blooper
Blooper
Posts: 158
Joined: Wed Apr 20, 2022 8:27 am
Flair: Nothing
Pronouns: he/him

Re: TripleJump.lua - Triple Jump like a pro!

Postby Ibaka » Mon Feb 05, 2024 12:13 pm

My numb move collection is making it out with this one!


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 2 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari