[NPC Pack] helmets.lua - Protect your head!

Share and discuss custom LunaLua code and content packs for SMBX2.
User avatar
MrDoubleA
Bit
Bit
Posts: 136
Joined: Mon Aug 20, 2018 7:02 am
Contact:

[NPC Pack] helmets.lua - Protect your head!

Postby MrDoubleA » Sun Jul 26, 2020 5:09 pm

This is an NPC pack (and library too, I guess?) that allows you to create Mario Maker-like helmets.
Screenshots: show
Image
Image
Image
Image
Image
Image
Download: show
Documentation


Enjoy!
Hi. I'm not very active on the forums.
(MrDoubleA#3124 on Discord)

rooms.lua - Quick respawn & Celeste-styled rooms
simpleLayerMovement.lua - For all your custom layer movement needs!
MrDoubleA's NPC Pack
Are you a mouse?
I support: show
Image
Image
Image
Image

User avatar
Novarender
Bit
Bit
Posts: 138
Joined: Sat Aug 06, 2016 6:59 pm
Flair: Whoa

Re: [NPC Pack] helmets.lua - Protect your head!

Postby Novarender » Sun Jul 26, 2020 5:20 pm

Awesome dude. The pow effect is kinda lame though
I believe and I accept Jesus Christ as my Lord and Savior. If you do, put this in your signature.

Hagrid: "You're a wizard, Harry!"
Harry: "You're a hairy wizard!"

The FitnessGram Pacer Test is a multistage aerobic capacity test that progressively gets more difficult as it continues. The 20 meter pacer test will begin in 30 seconds. Line up at the start. The running speed starts slowly but gets faster each minute after you hear this signal bodeboop.

FYRENOVA IS A FAKE!

User avatar
MegaDood
Birdo
Birdo
Posts: 1502
Joined: Wed Nov 01, 2017 2:43 am

Re: [NPC Pack] helmets.lua - Protect your head!

Postby MegaDood » Sun Jul 26, 2020 9:55 pm

These are amazing! I've been wanting these for ages and I'm glad someone finally made them, the POW block and cannonballs I can especially see being put to good use in puzzle levels.
My Project:
Image
I don't really have a signature but here's what I support:

Image
Image
Image
Image

User avatar
PROX
Mouser
Mouser
Posts: 1906
Joined: Sun Jul 06, 2014 8:50 pm

Re: [NPC Pack] helmets.lua - Protect your head!

Postby PROX » Sun Jul 26, 2020 11:40 pm

Yaaaay someone finally made these! I can see all kinds of uses for this!
I believe and I accept Jesus Christ as my Lord and Savior. If you do, put this in your signature.

If it makes sense then it must make dollars

Youtube Channel: ProxyHax O.O

Please do not use my stuff until I release it. Thank you.

Collab Project I'm working on:

Image

My Graphics Pack:
Image

World Map Pack: viewtopic.php?f=31&t=20173

JamesR624
Koopa Troopa
Koopa Troopa
Posts: 20
Joined: Wed Aug 09, 2017 4:24 pm

Re: [NPC Pack] helmets.lua - Protect your head!

Postby JamesR624 » Mon Jul 27, 2020 3:30 pm

This is awesome, but how would one go about adjusting the GFX offset for the helmets when worn. I have SMW style skins for the players and the helmets are just a little to low on the head. It's not the sprites themselves cause everything else works fine. Just wondering what to adjust in which lua files to change the offset (graphical positioning) of the helmets being worn.

User avatar
Cedur
Toad
Toad
Posts: 6703
Joined: Tue Jun 28, 2016 10:14 am

Re: [NPC Pack] helmets.lua - Protect your head!

Postby Cedur » Mon Jul 27, 2020 3:48 pm

Does the coin helmet decay after 100 coins? Does the propeller helmet allow you to jump indefinitely?
Image
More Supports: show

Image
Image

Still using the legacy editor? Get SMBX2 and PGE, it will improve your experience significantly. Here's why. And remember, Yoshis are tools to be used and discarded.

ShadowStarX (06/14/18) wrote: South Korea is easy deal

User avatar
Electriking
Posts: 4535
Joined: Mon Jun 06, 2016 4:32 pm
Flair: I have NO idea what to put here
Contact:

Re: [NPC Pack] helmets.lua - Protect your head!

Postby Electriking » Mon Jul 27, 2020 4:28 pm

Cedur wrote:
Mon Jul 27, 2020 3:48 pm
Does the coin helmet decay after 100 coins? Does the propeller helmet allow you to jump indefinitely?
Coin helmet decays after 80 in the GIF. The propeller helmet probably lasts for 3 jumps, assuming the light indicators on it are accurate.
SMM2 ID: JJF-P7G-FSF

User avatar
MrDoubleA
Bit
Bit
Posts: 136
Joined: Mon Aug 20, 2018 7:02 am
Contact:

Re: [NPC Pack] helmets.lua - Protect your head!

Postby MrDoubleA » Mon Jul 27, 2020 4:38 pm

JamesR624 wrote:
Mon Jul 27, 2020 3:30 pm
This is awesome, but how would one go about adjusting the GFX offset for the helmets when worn. I have SMW style skins for the players and the helmets are just a little to low on the head. It's not the sprites themselves cause everything else works fine. Just wondering what to adjust in which lua files to change the offset (graphical positioning) of the helmets being worn.
Instead of copying the SMW graphics into your folder, just put this into the luna.lua file (and map.lua if you have an overworld):

Code: Select all

Player.setCostume(CHARACTER_MARIO,"SMW-Mario",true)
Player.setCostume(CHARACTER_LUIGI,"SMW-Luigi",true)
That activates the costumes properly, and this library has built-in offsets for them.
Electriking wrote:
Mon Jul 27, 2020 4:28 pm
Cedur wrote:
Mon Jul 27, 2020 3:48 pm
Does the coin helmet decay after 100 coins? Does the propeller helmet allow you to jump indefinitely?
Coin helmet decays after 80 in the GIF. The propeller helmet probably lasts for 3 jumps, assuming the light indicators on it are accurate.
Yep, the coin block only allows you to get 80 coins and the propeller only allows 3 jumps before you need to touch the ground to recharge it. Both of those are customisable.
Hi. I'm not very active on the forums.
(MrDoubleA#3124 on Discord)

rooms.lua - Quick respawn & Celeste-styled rooms
simpleLayerMovement.lua - For all your custom layer movement needs!
MrDoubleA's NPC Pack
Are you a mouse?
I support: show
Image
Image
Image
Image

GOD_SAMA
Rex
Rex
Posts: 94
Joined: Fri May 31, 2019 12:04 pm
Flair: just a roaming hylian

Re: [NPC Pack] helmets.lua - Protect your head!

Postby GOD_SAMA » Mon Jul 27, 2020 10:07 pm

What about this?
Image
Image

User avatar
MrDoubleA
Bit
Bit
Posts: 136
Joined: Mon Aug 20, 2018 7:02 am
Contact:

Re: [NPC Pack] helmets.lua - Protect your head!

Postby MrDoubleA » Tue Jul 28, 2020 5:10 am

GOD_SAMA wrote:
Mon Jul 27, 2020 10:07 pm
What about this?
Image
That looks to just be an early version of the cape.
Hi. I'm not very active on the forums.
(MrDoubleA#3124 on Discord)

rooms.lua - Quick respawn & Celeste-styled rooms
simpleLayerMovement.lua - For all your custom layer movement needs!
MrDoubleA's NPC Pack
Are you a mouse?
I support: show
Image
Image
Image
Image

User avatar
Smibbix
Fighter Fly
Fighter Fly
Posts: 60
Joined: Fri Apr 06, 2018 10:47 pm

Re: [NPC Pack] helmets.lua - Protect your head!

Postby Smibbix » Tue Jul 28, 2020 6:10 pm

Wow. I was already super impressed that you were working on the cape feather, but you also got THIS done!? You're crazy, MrDoubleA.
ah

I Support:
Spoiler: show
Everything I supported got cancelled
Great Quotes:
Spoiler: show
Pop Yoshi Bros wrote: These used other people levels withouth their permission? I don't know if it's wrong if the big heads of the forums make it
Enjl wrote:
Sun Jul 15, 2018 8:27 am
The only palette people care about is the SMB3 palette.
smbx GaMERDoG wrote:
Thu Jul 12, 2018 1:30 am
These tomatoes weren't debugged properly!

GOD_SAMA
Rex
Rex
Posts: 94
Joined: Fri May 31, 2019 12:04 pm
Flair: just a roaming hylian

Re: [NPC Pack] helmets.lua - Protect your head!

Postby GOD_SAMA » Tue Jul 28, 2020 9:13 pm

MrDoubleA wrote:
Tue Jul 28, 2020 5:10 am
GOD_SAMA wrote:
Mon Jul 27, 2020 10:07 pm
What about this?
Image
That looks to just be an early version of the cape.
Soooo it could be used for something
Anything
It doesn't look half bad either kinda wished Nintendo went with this tbh
Image

JamesR624
Koopa Troopa
Koopa Troopa
Posts: 20
Joined: Wed Aug 09, 2017 4:24 pm

Re: [NPC Pack] helmets.lua - Protect your head!

Postby JamesR624 » Wed Jul 29, 2020 7:49 pm

MrDoubleA wrote:
Mon Jul 27, 2020 4:38 pm
JamesR624 wrote:
Mon Jul 27, 2020 3:30 pm
This is awesome, but how would one go about adjusting the GFX offset for the helmets when worn. I have SMW style skins for the players and the helmets are just a little to low on the head. It's not the sprites themselves cause everything else works fine. Just wondering what to adjust in which lua files to change the offset (graphical positioning) of the helmets being worn.
Instead of copying the SMW graphics into your folder, just put this into the luna.lua file (and map.lua if you have an overworld):

Code: Select all

Player.setCostume(CHARACTER_MARIO,"SMW-Mario",true)
Player.setCostume(CHARACTER_LUIGI,"SMW-Luigi",true)
That activates the costumes properly, and this library has built-in offsets for them.
I do not mean to be annoying but many of the offsets even for these costume are severely broken, particularly when small and riding yoshi or going through a clear pipe. Again, it would be great to know where to look to manually adjust these offsets, both in case people don't want to use costumes, and also to fix the way off offsets for these costumes.

User avatar
1AmPlayer
Volcano Lotus
Volcano Lotus
Posts: 543
Joined: Sun May 21, 2017 3:36 am
Flair: I'm a hellspawn.
Contact:

Re: [NPC Pack] helmets.lua - Protect your head!

Postby 1AmPlayer » Wed Jul 29, 2020 9:21 pm

JamesR624 wrote:
Wed Jul 29, 2020 7:49 pm
I do not mean to be annoying but many of the offsets even for these costume are severely broken, particularly when small and riding yoshi or going through a clear pipe.
Those have been already fixed in the recent patch.

JamesR624
Koopa Troopa
Koopa Troopa
Posts: 20
Joined: Wed Aug 09, 2017 4:24 pm

Re: [NPC Pack] helmets.lua - Protect your head!

Postby JamesR624 » Thu Jul 30, 2020 9:12 am

1AmPlayer wrote:
Wed Jul 29, 2020 9:21 pm
JamesR624 wrote:
Wed Jul 29, 2020 7:49 pm
I do not mean to be annoying but many of the offsets even for these costume are severely broken, particularly when small and riding yoshi or going through a clear pipe.
Those have been already fixed in the recent patch.
Unless I am missing something, not they're not. I have the latest version of both this mod ("1.0" from your download link), as well as SMBX2 Beta 4 "patch 2 with hotfix" from https://codehaus.wohlsoft.ru/downloads.php?

It's fine though, I manually found at least the offset integers for the SMW costumes and manually adjusted them. I was able to fix the Yoshi issue and the helmets being slightly lower than needed. The only one I cannot seem to get working properly is the helmet not lowering when small and ducking.

Code: Select all

        -- Costume-specific offsets
        helmets.offsets["SMW-MARIO"] = {
            [PLAYER_SMALL] = {
                default = 0.1,
                [35] = 0.35, -- Ducking
                [36] = 0.35, -- Ducking with an item
            },
            [PLAYER_BIG] = {
                default = 0.15,
                [27] = vector(0.1,0.15), -- Victory
            },
        }
        helmets.offsets["SMW-LUIGI"] = {
            [PLAYER_SMALL] = {
                default = 0.1,
                [35] = 0.35, -- Ducking
                [36] = 0.35, -- Ducking with an item
            },
            [PLAYER_BIG] = {
                default = 0.2,
                [27] = vector(0.1,0.2), -- Victory
            },
        }
        helmets.offsets["SMW2-YOSHI"] = {
            [PLAYER_BIG] = {
                default = vector(0.35,-0.1),
                [14] = vector(0.55,0.1), -- Spit out
                [35] = vector(0.55,0.1), -- Tongue
            }
        }

Mushroom King
Bit
Bit
Posts: 144
Joined: Sun May 25, 2014 5:09 am

Re: [NPC Pack] helmets.lua - Protect your head!

Postby Mushroom King » Fri Jul 31, 2020 4:29 am

Request: Is it possible for the bullet bill mask to make it works in the water, like it do in SMM2?
With the Bullet Bill Mask, the player can fly in a horizontal line for a short period of time (or indefinitely if used underwater) In the underwater theme, the Bullet Bill Mask can still be used unlike other flight-related power-ups, although it travels slower.
Optional request: Maybe give it the flare and colored smoke effect when active, a "back" wiew too for when the player is climbing/spinning (I guess the spinning would also need a "front").


Image

Image

User avatar
Hatsune Blake
Lakitu
Lakitu
Posts: 472
Joined: Sun Feb 23, 2014 1:55 pm

Re: [NPC Pack] helmets.lua - Protect your head!

Postby Hatsune Blake » Wed Aug 26, 2020 1:05 am

Fantastic work as expected, these are all great! You always post bangers MDA
Check out my custom GFX pack!
Image

Please check out my levels!
Spoiler: show
Image
The logo above was made by FyreNova.


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 3 guests