Page 1 of 1

Wariorolling.lua - Roll like in the Wario Land series!

Posted: Tue Feb 14, 2023 10:07 am
by Master of Disaster
----- Wariorolling.lua v1.3 -----
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
Spoiler: show
Image
Image
Image
What's new in v1.1? Not much, I know. But it should help you nevertheless:
- 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

Re: Wariorolling.lua - Roll like in the Wario Land series!

Posted: Wed Mar 01, 2023 2:52 pm
by MarioChallengerX2
Question. Is it possible for me to:

1. Use this with the actual playable Wario.

2. Make extra frames in accordance with the powerups that Wario has at the moment?(like, to be consistent while Wario has an ice flower, Tanooki Tail, etc)

Re: Wariorolling.lua - Roll like in the Wario Land series!

Posted: Fri Mar 03, 2023 10:37 am
by Master of Disaster
MarioChallengerX2 wrote:
Wed Mar 01, 2023 2:52 pm
Question. Is it possible for me to:

1. Use this with the actual playable Wario.

2. Make extra frames in accordance with the powerups that Wario has at the moment?(like, to be consistent while Wario has an ice flower, Tanooki Tail, etc)
You can use that with Wario but there is a weird offset. I'll work on a quick v1.1 to give a little bit more control over stuff like graphicsoffset + powerupversions

Re: Wariorolling.lua - Roll like in the Wario Land series!

Posted: Fri Mar 03, 2023 10:47 am
by MarioChallengerX2
Master of Disaster wrote:
Fri Mar 03, 2023 10:37 am
MarioChallengerX2 wrote:
Wed Mar 01, 2023 2:52 pm
Question. Is it possible for me to:

1. Use this with the actual playable Wario.

2. Make extra frames in accordance with the powerups that Wario has at the moment?(like, to be consistent while Wario has an ice flower, Tanooki Tail, etc)
You can use that with Wario but there is a weird offset. I'll work on a quick v1.1 to give a little bit more control over stuff like graphicsoffset + powerupversions
Okay, good to hear! ^^

Re: Wariorolling.lua - Roll like in the Wario Land series!

Posted: Tue Mar 07, 2023 2:48 pm
by TheGameyFireBro105
OK. Can u add the costume or whatever you're using in the GIF?

Re: Wariorolling.lua - Roll like in the Wario Land series!

Posted: Wed Mar 08, 2023 10:10 am
by MarioChallengerX2
TheGameyFireBro105 wrote:
Tue Mar 07, 2023 2:48 pm
OK. Can u add the costume or whatever you're using in the GIF?
It's in the test level btw.

Re: Wariorolling.lua - Roll like in the Wario Land series!

Posted: Mon Apr 10, 2023 3:16 pm
by smwturtlequest64
now this is beyond pizza tower to the MAX! good job!