Share and discuss custom LunaLua code and content packs for SMBX2.
|
|
|
|
-
MrNameless
- Hoopster
- Posts: 102
- Joined: Mon Jul 10, 2023 11:40 pm
- Flair: vidio gaem
Postby MrNameless » Fri Nov 10, 2023 5:10 am
Hey there once again!
Here's a library that let's you roll when sliding & do a somersault by pressing altRun + down, which lets you gain a burst speed & even makes you invincible for a short time!
You can also configure the library with the following:
- somersault.enabled - can the player be able to somersault?
- somersault.slideRoll - can the player also be able to roll when simply sliding?
- somersault.barrelRoll - can the player also be able to roll when being shot out of a barrel?
- somersault.allowFlash - should the player flash white upon starting a somersault?
- somersault.setiFrames - how many frames will the player be invincible when initiating a somersault?
- somersault.setCooldown - how many frames will it take before the player can somersault again after doing one?
- somersault.initSpeedX - how much HORIZONTAL speed will the player get when initiating a somersault?
- somersault.initSpeedY - how much VERTICAL speed will the player get when initiating a somersault?
- somersault.inputsNeeded - what are the inputs needed to perform a somersault?
1. Install the file in the link below then copy & paste it to the level/episode folder of your choice.
2. In that level/episode's "luna.lua" file, copy & paste this line below on the top part of said "luna.lua" file: Code: Select all local somersault = require("somersault")
3. Save the "luna.lua" file then open up the level/episode & press altRun + Down to do a somersault!
DOWNLOAD: https://drive.google.com/file/d/1DiAS-9 ... drive_link
Last edited by MrNameless on Sun May 19, 2024 6:26 pm, edited 8 times in total.
|
|
|
|
|
|
|
|
|
-
AirShip
- Panser
- Posts: 1081
- Joined: Wed Jan 01, 2014 1:30 am
- Flair: The Flying Ghost
-
Contact:
Postby AirShip » Fri Nov 10, 2023 9:06 am
Definitely a "must-use" for a future project for sure!
Very good work.
|
|
|
|
|
|
|
|
|
-
Lunar Chris
- Monty Mole
- Posts: 134
- Joined: Mon Jan 06, 2014 9:51 pm
- Flair: Moon Lord's Servant
-
Contact:
Postby Lunar Chris » Fri Nov 10, 2023 4:46 pm
This is actually cool! Does it also work for other characters?
|
|
|
|
|
|
|
|
|
-
MrNameless
- Hoopster
- Posts: 102
- Joined: Mon Jul 10, 2023 11:40 pm
- Flair: vidio gaem
Postby MrNameless » Fri Nov 10, 2023 5:28 pm
Lunar Chris wrote: ↑Fri Nov 10, 2023 4:46 pm
This is actually cool! Does it also work for other characters?
The script technically could work with other characters that aren't Toad, Peach, Link or any other characters that use them as a base, as the only thing stopping it work with other characters is two simple checks to see if the player's character is either Mario or Luigi.
That said, I haven't tested the script on them so
|
|
|
|
|
|
|
|
|
-
TheGameyFireBro105
- Eerie
- Posts: 747
- Joined: Thu Jan 09, 2020 6:09 pm
- Flair: Good at remakes
- Pronouns: he/him
Postby TheGameyFireBro105 » Fri Nov 10, 2023 11:09 pm
Wait hold on do we now have all of SMO's moveset in the game now?
|
|
|
|
|
|
|
|
|
-
mariobrigade2018
- Volcano Lotus
- Posts: 504
- Joined: Wed May 24, 2023 7:00 pm
- Flair: Normie in coding who dreams of making a Mario game
- Pronouns: he/him
Postby mariobrigade2018 » Sat Nov 11, 2023 12:41 am
TheGameyFireBro105 wrote: ↑Fri Nov 10, 2023 11:09 pm
Wait hold on do we now have all of SMO's moveset in the game now?
Cappy.
|
|
|
|
|
|
|
|
|
-
HAK0TA538
- Bob-Omb
- Posts: 22
- Joined: Wed Oct 18, 2023 11:57 pm
- Flair: Lua is cool
- Pronouns: He/Him
Postby HAK0TA538 » Fri Nov 17, 2023 9:16 pm
TheGameyFireBro105 wrote: ↑Fri Nov 10, 2023 11:09 pm
Wait hold on do we now have all of SMO's moveset in the game now?
According to google:
Mario maintains his moveset from previous 3D titles, including the Triple Jump, the Long Jump, the Side Somersault, the Backward Somersault, the Roll, the Ground Pound, the Ground Pound Jump, the Spin Jump, and the returning dive.
2 of those are in this very pack, we just need a long jump lua and a backwards somersault lua and we got it
|
|
|
|
|
|
|
|
|
-
Spudly
- Shy Guy
- Posts: 9
- Joined: Sun Mar 17, 2024 3:37 am
- Pronouns: He/him they/them
Postby Spudly » Mon Apr 29, 2024 12:23 pm
whenever i somersault to the left this strange effect happens
i am using CaptainMonochrome's SMM2 SMW Mario costume
|
|
|
|
|
|
|
|
|
-
MrNameless
- Hoopster
- Posts: 102
- Joined: Mon Jul 10, 2023 11:40 pm
- Flair: vidio gaem
Postby MrNameless » Sat May 18, 2024 6:43 am
Hello!
I recently overhauled my somersault script to 2.0 for a more well written script + added rolling after being shot out of a barrel as a new optional setting!
|
|
|
|
|
|
|
|
|
-
MrNameless
- Hoopster
- Posts: 102
- Joined: Mon Jul 10, 2023 11:40 pm
- Flair: vidio gaem
Postby MrNameless » Sun May 19, 2024 9:07 am
I know it's been a day but here's another semi major update to somersault lol
- Fixed showing the slide animation when somersaulting for a certain time with slideRoll turned off
- Added anotherwalljump compatibilty to prevent rolling while wall-sliding
- Added a white flash upon somersaulting to indicate how many i-frames the player has left.
|
|
|
|
|
|
|
|
|
-
Just_Thomas
- Spike
- Posts: 296
- Joined: Sat Dec 16, 2023 3:32 am
- Pronouns: he/him
Postby Just_Thomas » Mon May 20, 2024 4:38 am
MrNameless wrote: ↑Sun May 19, 2024 9:07 am
I know it's been a day but here's another semi major update to somersault lol
- Fixed showing the slide animation when somersaulting for a certain time with slideRoll turned off
- Added anotherwalljump compatibilty to prevent rolling while wall-sliding
- Added a white flash upon somersaulting to indicate how many i-frames the player has left.
I hope this question doesn't seem too annoying as a request, but: Is there a chance that this could ONLY work for the barrels (i.e. when the player is ejected from a barrel) and otherwise somersault.lua is not active?
(I have not downloaded your work yet and therefore not tested what can be done with it)
|
|
|
|
|
Return to “LunaLua”
Users browsing this forum: No registered users and 0 guests
|