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

Share and discuss custom LunaLua code and content packs for SMBX2.
Master of Disaster
Rex
Rex
Posts: 35
Joined: Sun Nov 28, 2021 9:29 am
Flair: Average Koopa Fan
Pronouns: he/him

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

Postby Master of Disaster » Tue Feb 14, 2023 10:07 am

----- 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
Last edited by Master of Disaster on Wed Mar 22, 2023 1:49 pm, edited 3 times in total.

MarioChallengerX2
Dolphin
Dolphin
Posts: 80
Joined: Sat Dec 31, 2022 4:34 pm
Pronouns: he/him

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

Postby MarioChallengerX2 » 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)

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

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

Postby Master of Disaster » 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

MarioChallengerX2
Dolphin
Dolphin
Posts: 80
Joined: Sat Dec 31, 2022 4:34 pm
Pronouns: he/him

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

Postby MarioChallengerX2 » Fri Mar 03, 2023 10:47 am

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! ^^

TheGameyFireBro105
Eerie
Eerie
Posts: 741
Joined: Thu Jan 09, 2020 6:09 pm
Flair: Good at remakes
Pronouns: he/him

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

Postby TheGameyFireBro105 » Tue Mar 07, 2023 2:48 pm

OK. Can u add the costume or whatever you're using in the GIF?

MarioChallengerX2
Dolphin
Dolphin
Posts: 80
Joined: Sat Dec 31, 2022 4:34 pm
Pronouns: he/him

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

Postby MarioChallengerX2 » Wed Mar 08, 2023 10:10 am

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.

smwturtlequest64
Bob-Omb
Bob-Omb
Posts: 22
Joined: Fri Nov 20, 2020 5:13 pm
Flair: me video game
Pronouns: he
Contact:

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

Postby smwturtlequest64 » Mon Apr 10, 2023 3:16 pm

now this is beyond pizza tower to the MAX! good job!


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 0 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari