groundPound.lua

Share and discuss custom LunaLua code and content packs for SMBX2.

Moderator: Userbase Moderators

Bulby_VR
Fighter Fly
Fighter Fly
Posts: 33
Joined: Wed Aug 07, 2019 11:18 am

groundPound.lua

Postby Bulby_VR » Mon Nov 25, 2019 7:06 pm

Version 1.5
old version was being janky with the crashing with link and such, so here is a new link

Copy from previous version :
This is so radically different from the other versions that the library name has changed.
Please note if you want the spin animation you will give up changing mario and luigi's costumes.
After dragging everything from this zip
into your local or episode folder, do one of the following:
If you want to see the somersault before you pound put this in your luna.lua file:

Code: Select all

local groundPoundNeue = require("groundPoundNeue");
groundPoundNeue.registerAllPlayersFancyAnim();
If you want to change costumes or don't want a spin animation do this:

Code: Select all

local groundPoundNeue = require("groundPoundNeue");
groundPoundNeue.registerAllPlayersDefault();
This also fixes most of the jank with non-solid platforms. Please post if you see anything janky!

Old Versions:
Spoiler: show
Version 1.4
Tada! It's a spinning animation!
Here's a demo!

This is so radically different from the other versions that the library name has changed.
Please note if you want the spin animation you will give up changing mario and luigi's costumes.
After dragging everything from this zip
into your local or episode folder, do one of the following:
If you want to see the somersault before you pound put this in your luna.lua file:

Code: Select all

local groundPoundNeue = require("groundPoundNeue");
groundPoundNeue.registerAllPlayersFancyAnim();
If you want to change costumes or don't want a spin animation do this:

Code: Select all

local groundPoundNeue = require("groundPoundNeue");
groundPoundNeue.registerAllPlayersDefault();
This also fixes most of the jank with non-solid platforms. Please post if you see anything janky!
That's basically it!

Version 1.3
This version polishes some things.
You can no longer ground pound underwater
Note; You've always been able to do this but I should explain the controls.
Hitting down makes you ground pound. Hitting up while ground pounding will cancel the ground pound.
I will update this as soon as I record a video!
Download: http://www.mediafire.com/file/zolmwjk4m ... l.lua/file
Add

Code: Select all

local gp = require("groundPoundPal")
to your luna lua file.
You can also edit how long you stay in the air by using

Code: Select all

gp.delayUntilPound = 20
Version 1.2
You now delay before ground pounding, in a different pose to boot!
Add

Code: Select all

local gp = require("groundPoundPal")
to your luna lua file.
You can also edit how long you stay in the air by using

Code: Select all

gp.delayUntilPound = 20
This is measured in ticks.
Download: http://www.mediafire.com/file/3qq7aibo6 ... l.lua/file
Version 1.1
This is almost the same as the previous version but now has support for PAL characters (Megaman, Wario, etc.)
Bowser can't instant kill enemies because of his character specific ability.
It's still 2 Player Compatible and now compatible with all characters except for Link, Bomberman, Uncle Broadsword, and Samus, as they already have something in their move set that allows them to destroy blocks from above.

Download: http://www.mediafire.com/file/kxt49814d ... l.lua/file

You have to change your luna lua file and add

Code: Select all

local gp = require("groundPoundPal")
You can no longer edit defines within your luna lua file, and will have to edit the file directly.
Version 1.0
I have done it!
The magical (and janky) Ground Pound script!
Here is a demo:


Features:
2 Player Compatibility
Compatible with Mario, Luigi, Toad, and Peach.
Can instant kill certain enemies. (like rex and koopa troopa)

Download: http://www.mediafire.com/file/1od5fuwpb ... d.lua/file

To install, put the file in your episode or level file and add this to your luna.lua file

Code: Select all

local gp = require("groundPound")
You can also edit the gravity define, how fast your normal fall speed is, how fast your initial ground pound speed is, and how fast your ground pound speed is.
In your luna.lua file, add

Code: Select all

gp.gravityDefine = 20; -- gravity 

Code: Select all

gp.terminalSpeed = 12; -- maximum fall speed

Code: Select all

gp.speedPound = 14; -- maximum fall speed during ground pound

Code: Select all

gp.initialPound = 12; -- fall speed at start of ground pound
Last edited by Bulby_VR on Mon May 11, 2020 11:04 am, edited 5 times in total.

Murphmario
2025 Egg Hunter
2025 Egg Hunter
Posts: 2389
Joined: Fri Dec 20, 2013 7:07 pm
Pronouns: he/him

Re: groundPound.lua

Postby Murphmario » Wed Nov 27, 2019 1:52 pm

Looks decent, but maybe you could add a delay before falling to make it look nicer.

MarioLover64
Spike
Spike
Posts: 259
Joined: Fri Apr 26, 2019 6:09 pm

Re: groundPound.lua

Postby MarioLover64 » Fri Nov 29, 2019 4:50 pm

I cant duck

Bulby_VR
Fighter Fly
Fighter Fly
Posts: 33
Joined: Wed Aug 07, 2019 11:18 am

Re: groundPound.lua

Postby Bulby_VR » Fri Nov 29, 2019 4:55 pm

MarioLover64 wrote:
Fri Nov 29, 2019 4:50 pm
I cant duck
Like, while big mario? I don’t think I locked the down button so you should be able to crouch.

MarioLover64
Spike
Spike
Posts: 259
Joined: Fri Apr 26, 2019 6:09 pm

Re: groundPound.lua

Postby MarioLover64 » Fri Nov 29, 2019 5:12 pm

Apparently when I bounce on a noteblock I lose the ability to crouch

Bulby_VR
Fighter Fly
Fighter Fly
Posts: 33
Joined: Wed Aug 07, 2019 11:18 am

Re: groundPound.lua

Postby Bulby_VR » Fri Nov 29, 2019 5:20 pm

Can you be more specific (what character did you use, what version did you have, recording if possible)

Added in 7 minutes 16 seconds:
I just realized silly me didn't update this post

MarioLover64
Spike
Spike
Posts: 259
Joined: Fri Apr 26, 2019 6:09 pm

Re: groundPound.lua

Postby MarioLover64 » Fri Nov 29, 2019 5:31 pm

Mario, PAL
Image

Bulby_VR
Fighter Fly
Fighter Fly
Posts: 33
Joined: Wed Aug 07, 2019 11:18 am

Re: groundPound.lua

Postby Bulby_VR » Fri Nov 29, 2019 5:35 pm

That might have something to do with the wall jump because it looks like you have Enji's another wall jump on. You also didn't seem to use the ground pound, so maybe mine conflicts? I don't really check my stuff with other people's work, so I'll have to check.

Added in 4 minutes 10 seconds:
Try taking off the ground pound script and see if it still happens

MECHDRAGON777
Pink Yoshi Egg
Pink Yoshi Egg
Posts: 6422
Joined: Fri Dec 20, 2013 6:40 pm
Flair: Nuclear Queen of Reversion.
Contact:

Re: groundPound.lua

Postby MECHDRAGON777 » Sun Dec 01, 2019 2:07 pm

I can confirm that walljump codes remove the ability to duck if you slide down a wall and touch the ground without jumping off the wall. (I.E. Touch the wall and ground at the same time while sliding down a wall.)

SPEEDIE
Flurry
Flurry
Posts: 180
Joined: Sat Nov 03, 2018 6:22 pm
Flair: u fucking wot
Pronouns: he/him
Contact:

Re: groundPound.lua

Postby SPEEDIE » Sun Dec 01, 2019 2:57 pm

MarioLover64 wrote:
Fri Nov 29, 2019 5:12 pm
Apparently when I bounce on a noteblock I lose the ability to crouch
Late but this happens for me but with a different script

Anotherwalljump.lua by Enjl.

CheesyYoY
Hoopster
Hoopster
Posts: 48
Joined: Wed Aug 01, 2018 7:51 pm
Flair: I exist

Re: groundPound.lua

Postby CheesyYoY » Wed Jan 01, 2020 11:54 pm

Ngl if there was a quick spin animation, i would lose my shit

Yummymemes
Hoopster
Hoopster
Posts: 44
Joined: Tue Dec 10, 2019 9:01 pm

Re: groundPound.lua

Postby Yummymemes » Sun Jan 19, 2020 10:38 pm

Umm, where do I put it, because it keeps on showing an error. (I am using Smbx2 beta 4) :(

Bulby_VR
Fighter Fly
Fighter Fly
Posts: 33
Joined: Wed Aug 07, 2019 11:18 am

Re: groundPound.lua

Postby Bulby_VR » Wed Feb 05, 2020 10:28 am

Haven't tested on beta 4 yet, and i might do a spin anim :P

MarioLover64
Spike
Spike
Posts: 259
Joined: Fri Apr 26, 2019 6:09 pm

Re: groundPound.lua

Postby MarioLover64 » Wed Feb 05, 2020 10:31 am

Its works on beta 4, I tested it myself

Bulby_VR
Fighter Fly
Fighter Fly
Posts: 33
Joined: Wed Aug 07, 2019 11:18 am

Re: groundPound.lua

Postby Bulby_VR » Wed Feb 05, 2020 12:49 pm

Oh if you mean spin like a somersault then I can't, I don't make sprites, but I could make a spin anim for luigi and mario as they do with their spin jump.

Murphmario
2025 Egg Hunter
2025 Egg Hunter
Posts: 2389
Joined: Fri Dec 20, 2013 7:07 pm
Pronouns: he/him

Re: groundPound.lua

Postby Murphmario » Wed Feb 05, 2020 12:57 pm

You could either rotate the sliding sprite (if it's possible) or somehow incorporate the SMB3 star jumping sprites.

Yummymemes
Hoopster
Hoopster
Posts: 44
Joined: Tue Dec 10, 2019 9:01 pm

Re: groundPound.lua

Postby Yummymemes » Wed Feb 05, 2020 2:06 pm

So where do I put it? (sorry I don't understand lua :( ) I tried putting it in the episodes folder but it doesn't work, I just get an error message. :(

DrMekar
Eerie
Eerie
Posts: 781
Joined: Sat Apr 08, 2017 7:16 am
Flair: CUSTOM CHARACTER CREATOR
Contact:

Re: groundPound.lua

Postby DrMekar » Wed Feb 05, 2020 2:28 pm

Yummymemes wrote:
Wed Feb 05, 2020 2:06 pm
So where do I put it? (sorry I don't understand lua :( ) I tried putting it in the episodes folder but it doesn't work, I just get an error message. :(
You put the file "groundPoundPal.lua" in your Episode folder and load it in the libary via the sentece given above. That sentence needs to be written in a lua file calld luna.lua, which also needs to be in the Folder of the Episode.

DrMekar
Eerie
Eerie
Posts: 781
Joined: Sat Apr 08, 2017 7:16 am
Flair: CUSTOM CHARACTER CREATOR
Contact:

Re: groundPound.lua

Postby DrMekar » Wed Feb 05, 2020 2:31 pm

While I really like this feature, I think that a diffrent animation should be used, because it
looks kinda odd ;D

Image

GDKeptr
Chain Chomp
Chain Chomp
Posts: 310
Joined: Fri May 04, 2018 12:04 am
Flair: Yo. I love to create stuff and inspire others.
Pronouns: He/Him
Contact:

Re: groundPound.lua

Postby GDKeptr » Fri Mar 27, 2020 6:31 pm

It's good to see a Ground Pound being made in lunalua. I quite enjoyed this until I see some criticism I want to share about this script.

First, for some reason you can't properly ground pound while you're in a sizable block while you can when you're not in the sizable block:
Image
Second, when I press down alot of times; it makes you glitch ground pound while you float down slowly and time to time. I don't know if that's supposed to work like that for this script, but I feel like this ground pound function while pressing down multiple times isn't normal compared to the other Mario games with the ground pound ability:
Image
And lastly, when I ground pound as big Mario he ground pounds on the ground weirdly unlike small Mario:
Image

To be fair, this is a decent ground pound script; but I hope it's possible for these issues to be fixed anytime soon.


Return to “LunaLua”

Who is online

Users browsing this forum: MarioXHK and 3 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari