Page 1 of 1

[Library] Hammer.lua - Kirby styled hammer! - v1.0

Posted: Tue Jul 12, 2022 12:38 am
by Marioman2007
Yo! Here's another script I made

GIF:
Spoiler: show
Image

Credits: (for details, please check the [Credits].txt file given with the download)
Me
MrDoubleA
Neweegee
HartFlip0218
LinkstormZ
Cooper B. Chance
Mysticus

Notes:
This script adds 4 new lua events-
onNPCBonk(evtObj, BonkedNPC, slamType) - executes when a npc gets slammed, can be cancelled
onBlockBonk(evtObj, BonkedBlock, slamType) - executes when a block gets slammed, can be cancelled
onPostNPCBonk(BonkedNPC, slamType) - executes when a npc gets slammed, cannot be cancelled
onPostBlockBonk(BonkedBlock, slamType) - executes when a block gets slammed, cannot be cancelled

BonkedNPC & BonkedBlock the npc/block that got hit
evtObj used to cancel the hit, evtObj.cancelled = true
slamType the type of slam, 1: normal slam, 2: hammer swing, 3: air swing

Settings are given at the top of the file

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

GFX Patch - smb3 mario instead of modern mario
https://cdn.discordapp.com/attachments/ ... hammer.zip

Enjoy and please give credits!

Re: [Library] Hammer.lua - Kirby styled hammer! - v1.0

Posted: Tue Jul 12, 2022 2:21 am
by MegaDood
This is a very nice script here! It looks like it'll be pretty useful for new sorts of level designs, great job with this.

Re: [Library] Hammer.lua - Kirby styled hammer! - v1.0

Posted: Tue Jul 12, 2022 3:31 pm
by Chilly14
Animations are weird while swinging the hammer, especially for Small, Tanooki, and Hammer Mario.
Spoiler: show
Image
Image
Small, Tanooki, and Hammer Mario turn into large squares while using the hammer.

Re: [Library] Hammer.lua - Kirby styled hammer! - v1.0

Posted: Tue Jul 12, 2022 10:10 pm
by Marioman2007
Chilly14 wrote:
Tue Jul 12, 2022 3:31 pm
Animations are weird while swinging the hammer, especially for Small, Tanooki, and Hammer Mario.
Spoiler: show
Image
Image
Small, Tanooki, and Hammer Mario turn into large squares while using the hammer.
Yeah, I mainly use the modern mario GFX, will fix that.
As for Small, Tanooki, and Hammer Mario, the GFX wasn't available so I'm still trying to create em, it will take some time.

Edit: GFX patch has been made, check the original post.

Re: [Library] Hammer.lua - Kirby styled hammer! - v1.0

Posted: Fri Jul 15, 2022 6:28 am
by Registered sand eater
Wow, definitely a good way to replace the Hammer suit if you are going for a kirby themed level! One question though, what characters does it support?

Re: [Library] Hammer.lua - Kirby styled hammer! - v1.0

Posted: Fri Jul 15, 2022 10:37 pm
by Marioman2007
Registered sand eater wrote:
Fri Jul 15, 2022 6:28 am
Wow, definitely a good way to replace the Hammer suit if you are going for a kirby themed level! One question though, what characters does it support?
It should support every character, but was only tested with mario.
of course you need GFX for the other characters as well.