This is small library I made - and it changes SMBX's sliding to work like in the Wario Land series! When you slide down a slope now, you will start rolling down after a short amount of time. While rolling, you can still jump, but additionally you break through blocks! Also, you can't brake, if you start rolling, you are committed to it until you hit a wall or loose enough speed.
It sadly doesn't work with Basegame Wario as your hitbox doesn't change for some reason.
Some footage of Wario tripping over and rolling
- changed the way the sprites are read
- Support for different powerup graphics, all stored in one spritesheet
- Added the option to reconfigure the height and width of the sprites on the spritesheet, if 50px don't make it for you
New Stuff in v1.2:
- you can't pick up objects while rolling
- You end up ducking when hitting a wall in a tight corridor (meant to be used with crawling)
New Stuff in v1.3:
- You don't take damage while holding jump anymore
- Holding jump doesn't slow you down anymore
- You don't awkwardly slide anymore after hitting a wall
- You can brake now by holding into the other direction
Be kind and credit me if you use it.
Speaking of credit:
- Script made by "Master" of Disaster
- Wario (WL4) Spritesheet made by basil
- Rolling frames ripped by A.J. Nitro, hatless edit by basil
How can I use it? Just download the file and put wariorolling.lua, rollingframes.png into your episode folder and add in your luna.lua file: local wariorolling = require("wariorolling"). That's it! Then you can use the following variables:
- wariorolling.rollingstate = [true / false] --> starts or stops the rolling
- wariorolling.hitboxheight = [height of your player] --> Not using the WL4 Wario costume? Then use this and set the height to your player's height
- wariorolling.framecount = [number of frames on your rolling animation] --> If your rollingframes.png file doesn't have 6 frames, you can set it to the amount it actually has to play the animation accordingly!
- wariorolling.gfxwidth = [the horizontal space your sprites takes up on the spritesheet] --> set to 50, and that should be enough
- wariorolling.gfxheight = [the vertical space your sprites take up on the spritesheet] --> set to 50, and that should also be enough
(Examples: wariorolling.rollingstate = true, wariorolling.hitboxheight = 52)
Get it alongside Dashing and Transformations (you can just copy rolling though if you don't want the rest)
https://www.dropbox.com/sh/1bj0ci1ept4z ... KdOoa?dl=0
Wanna get the second version? Oke:
https://www.dropbox.com/sh/l0bxlbb4uezp ... jnSya?dl=0
You want the first version? I don't get why, but sure:
https://www.dropbox.com/scl/fo/36zgvkie ... mdi2wow3kw