GroundPound.lua - pound the ground! [v1.1]

Share and discuss custom LunaLua code and content packs for SMBX2.
Marioman2007
Buster Beetle
Buster Beetle
Posts: 401
Joined: Tue Aug 25, 2020 3:19 am
Pronouns: He/Him

GroundPound.lua - pound the ground! [v1.1]

Postby Marioman2007 » Sat Sep 10, 2022 9:35 am

Another groundpound script

GIF
Spoiler: show
Image
(Graphics were fixed after recording, there are two variants for mario's GFX - modern and regular.)


Credits
-- Scripts --
Marioman2007
MrDoubleA


-- GFX --
LxXzit
Linkstorm Z
Marioman2007
CursedMario


Changelog
1.0 - Released!
1.1 - Fixed the pound killing generators and the score system


Download
https://drive.google.com/file/d/1tWmKoZ ... sp=sharing

Settings are at the top of the file.
Please give credits if used!!
Last edited by Marioman2007 on Wed Oct 26, 2022 2:18 am, edited 2 times in total.

Registered sand eater
Swooper
Swooper
Posts: 55
Joined: Fri Jan 28, 2022 4:14 pm
Pronouns: he/him

Re: GroundPound.lua - pound the ground! [v1]

Postby Registered sand eater » Sat Sep 10, 2022 3:40 pm

I decided to make a smw version cause why not.
Spoiler: show
Image

Download link:

Mushroom King
Tweeter
Tweeter
Posts: 167
Joined: Sun May 25, 2014 5:09 am

Re: GroundPound.lua - pound the ground! [v1]

Postby Mushroom King » Thu Sep 15, 2022 6:53 am

Would it be possible to make the ground pound use the down button while in midair (crouching) and not the spin jump button?

Marioman2007
Buster Beetle
Buster Beetle
Posts: 401
Joined: Tue Aug 25, 2020 3:19 am
Pronouns: He/Him

Re: GroundPound.lua - pound the ground! [v1]

Postby Marioman2007 » Thu Sep 15, 2022 10:19 am

Mushroom King wrote:
Thu Sep 15, 2022 6:53 am
Would it be possible to make the ground pound use the down button while in midair (crouching) and not the spin jump button?
Yeah its possible, but for a game where you can crouch in mid air it will be dangerous (for example, purple yoshi)

Mal8rk
Tweeter
Tweeter
Posts: 154
Joined: Mon Oct 25, 2021 11:04 pm
Flair: I like socializing with people online
Pronouns: He/Him
Contact:

Re: GroundPound.lua - pound the ground! [v1]

Postby Mal8rk » Sun Oct 02, 2022 10:20 pm

I wish you could change which blocks you could destroy and which ones you couldn't, cause' I've seen that you can break on & off blocks and things like that

Marioman2007
Buster Beetle
Buster Beetle
Posts: 401
Joined: Tue Aug 25, 2020 3:19 am
Pronouns: He/Him

Re: GroundPound.lua - pound the ground! [v1]

Postby Marioman2007 » Sun Oct 02, 2022 10:53 pm

Mal8rk wrote:
Sun Oct 02, 2022 10:20 pm
I wish you could change which blocks you could destroy and which ones you couldn't, cause' I've seen that you can break on & off blocks and things like that

You can't change the blocks. However, you can prevent blocks from being destroyed:

Code: Select all

local avoidedBlocks = table.map{id1, id2} -- you can always add/remove IDs here

function onBlockPound(event, v)
    if avoidedBlocks[v.id] then
        event.cancelled = true
    end
end

Ness-Wednesday
Purple Yoshi Egg
Purple Yoshi Egg
Posts: 1544
Joined: Sun Jun 28, 2015 3:50 pm
Flair: Diverse Scouts
Pronouns: He/Him

Re: GroundPound.lua - pound the ground! [v1]

Postby Ness-Wednesday » Tue Oct 25, 2022 10:12 pm

Great work! I spent a lot of time toying with this for the last two days, and it feels much smoother than the old ground pound. In no way was the old ground pound bad, but there were a few perks I had with it. Namely with how it interacted with destroyed blocks and sizeables, both of which are fixed here. The pound jump is a pleasant surprise! Really gives me nostalgia for when I first discovered it while playing SM3DW. The only small flaw I can point out is when the player ground pounds on a generating NPC:
Spoiler: show
Image
Generators are set to generate an enemy every 2 seconds.
Just a small bug. Besides this, I really love how this turned out. Keep up the good work! :D

Marioman2007
Buster Beetle
Buster Beetle
Posts: 401
Joined: Tue Aug 25, 2020 3:19 am
Pronouns: He/Him

Re: GroundPound.lua - pound the ground! [v1.1]

Postby Marioman2007 » Wed Oct 26, 2022 2:17 am

Thanks and glad you liked it!
I've updated the script, download and changelog in the original post!
Enjoy!

Shodax
Spiny
Spiny
Posts: 28
Joined: Sat Feb 05, 2022 2:24 pm
Pronouns: he

Re: GroundPound.lua - pound the ground! [v1]

Postby Shodax » Mon Nov 07, 2022 10:09 pm

Marioman2007 wrote:
Thu Sep 15, 2022 10:19 am
Mushroom King wrote:
Thu Sep 15, 2022 6:53 am
Would it be possible to make the ground pound use the down button while in midair (crouching) and not the spin jump button?
Yeah its possible, but for a game where you can crouch in mid air it will be dangerous (for example, purple yoshi)
I do not know much of lua but I have managed to make that with pressing down make the movement, in case someone serves

https://www.mediafire.com/file/rosns6de ... n.zip/file

Cognition
Bit
Bit
Posts: 79
Joined: Sun Oct 05, 2014 10:13 pm

Re: GroundPound.lua - pound the ground! [v1.1]

Postby Cognition » Fri Dec 09, 2022 2:56 pm

Is there a way to add custom power ups to this? For example, when using the cape feather by MDA.

Shodax
Spiny
Spiny
Posts: 28
Joined: Sat Feb 05, 2022 2:24 pm
Pronouns: he

Re: GroundPound.lua - pound the ground! [v1.1]

Postby Shodax » Sat Dec 10, 2022 2:35 pm

Cognition wrote:
Fri Dec 09, 2022 2:56 pm
Is there a way to add custom power ups to this? For example, when using the cape feather by MDA.
if compatible
Image


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 2 guests