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)
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:
Mario got da tricks!
You don't need custom spritesheets, you can also just use the ones on the default one, like Luigi!
Toad is doing some fun things as well!
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.