Cpt. Mono's Powerup Pack (Ft. the Penguin Suit!) [v1.1c]

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

Moderator: Userbase Moderators

CaptainMonochrome
Fighter Fly
Fighter Fly
Posts: 47
Joined: Fri Aug 21, 2020 3:40 pm
Flair: SMW sprites rock!
Pronouns: he/him

Cpt. Mono's Powerup Pack (Ft. the Penguin Suit!) [v1.1c]

Postby CaptainMonochrome » Sun Jan 09, 2022 9:37 pm

Ever felt like SMBX's default powerups were boring? Maybe you find the Super Leaf's flight too powerful, or the Ice Flower too slow?

Never fear, Cpt. Mono's Powerup Pack is here! With it, you can use Super Acorn to transform into Flying Squirrel Mario and glide leisurely through the air or the Penguin Suit to transform into Penguin Mario and slide on ice!

For the time being, by default, they only have custom sprites for Vanilla Mario. I might see if I can edit Luigi's sprites, but only if there's high demand.
If you find a sprite sheet of SMB3 Flying Squirrel or Penguin Luigi somewhere, then I implore you to contact me immediately.

Credits can be found at the very top of ap_acorn.lua and ap_penguin.lua.

Screenshot(s)
Spoiler: show
Image
Image

Changelog
Spoiler: show
v1.1c (4/2/2022)
  • Fixed an oversight in the Ice Flower's code that made the player shoot Ice Balls from the wrong location.
v1.1b (4/1/2022)
  • Gave the Fire and Ice Flowers the Penguin Suit's adjusted projectile timer code.
  • Fixed a bug that affected the SMM2 costumes' death animations in Flying Squirrel and Penguin Form.
  • Removed extraneous animation code from the Fire Flower, Ice Flower, and Penguin Suit.
  • Adjusted the location from which characters fire projectiles to be more natural.
  • Gave a secret in the Penguin Suit's code more correct wording.
v1.1 (3/27/2022)
  • Released the Penguin Suit!
  • Added fixes to the SMM2 playables' Flying Squirrel forms as needed.
  • Made the Fire and Ice Flowers compatible with the SMM2 costumes' alternate frames.
  • Made these powerups usable in the context of an actual episode.
  • Prevented players in Fire or Ice Form from being able to shoot up by default.
    • If you wish to restore the old behavior, go to anotherpowerupSMM2.lua and set flowerShootUp to true.
v1.0b (1/14/2022)
  • Added essential files to the download so that you don't have to hunt down the anotherpowerup.lua topic. No idea how I missed this one.
    • If you did so prior, then please replace ap_fireflower and ap_iceflower with the versions included in this pack, as they are more accurate to the vanilla Fire and Ice Flowers and will improve the animation accuracy of your character if you're using the SMM2 Playables Pack.
v1.0 (1/9/2022)
  • Released the Super Acorn!

Instructions (Please Read!)
Spoiler: show

IMPORTANT!
This powerup uses a custom version of anotherpowerup.lua to ensure that the SMM2 costumes and the Penguin Suit as a whole don't break. Using an unmodified anotherpowerup.lua file will lead to incorrect and glitchy behavior.


With that out of the way, installing it is very similar to other anotherpowerup.lua powerups.
Simply extract the files into your level or world folder, move them out of the Cpt. Mono's Powerup Pack folder, and then put these lines of code at the very top of your local or global level script.

Code: Select all

local ap = require("anotherpowerupSMM2")
ap.registerItemTier(800, true)
ap.registerPowerup("ap_acorn")
ap.registerItemTier(801, true)
ap.registerPowerup("ap_penguinsuit")
Keep in mind that by "top," I mean "even before onStart." If you try putting this code into onStart, it will not work.

Anyways, if you extracted the files correctly, you should see a small tileset that contains the Super Acorn and the Penguin Suit over in the Custom section. If it's not appearing, try hitting F8 to reload the editor.

Have fun!

Download
Last edited by CaptainMonochrome on Sat Apr 02, 2022 11:48 am, edited 8 times in total.

Marioman2007
2025 Egg Hunter
2025 Egg Hunter
Posts: 528
Joined: Tue Aug 25, 2020 3:19 am
Flair: Dr. Bones
Pronouns: He/Him

Re: Super Acorn (With SMM2 Playables Support!)

Postby Marioman2007 » Sun Jan 09, 2022 11:58 pm

Nice, I really like it!

MegaDood
Torpedo Ted
Torpedo Ted
Posts: 1798
Joined: Wed Nov 01, 2017 2:43 am

Re: Super Acorn (With SMM2 Playables Support!)

Postby MegaDood » Mon Jan 10, 2022 1:57 am

Looks really awesome, this will open up so much in the way of level design. Awesome job!

GlacialSiren484
Goomba
Goomba
Posts: 3
Joined: Tue May 12, 2020 4:39 pm

Re: Super Acorn (With SMM2 Playables Support!)

Postby GlacialSiren484 » Wed Jan 12, 2022 12:39 am

This is really nice!
But from what I could tell I gotta hurry up updating the penguin sprites since it seems like the penguin suit is the next power up

TheGameyFireBro105
Eerie
Eerie
Posts: 747
Joined: Thu Jan 09, 2020 6:09 pm
Flair: Good at remakes
Pronouns: he/him

Re: Super Acorn (With SMM2 Playables Support!)

Postby TheGameyFireBro105 » Wed Jan 12, 2022 10:02 am

GlacialSiren484 wrote:
Wed Jan 12, 2022 12:39 am
This is really nice!
But from what I could tell I gotta hurry up updating the penguin sprites since it seems like the penguin suit is the next power up
I mean, it's already half-way done, considering it's just an ice flower with frog suit attributes, a slide move, and immunity to ice physics. Considering this, the Frog Suit should be released in tandem with the Penguin Suit.

Neon358
Rex
Rex
Posts: 35
Joined: Tue Apr 07, 2020 5:24 pm

Re: Super Acorn (With SMM2 Playables Support!)

Postby Neon358 » Wed Jan 12, 2022 10:42 am

I am so happy that new powerups are being added to SMBX2, making my life a lot easier.
Thanks Captain Monochrome!
However, is there any chance of doing a Mini Mushroom? I feel it may be hard, if not impossible to script in SMBX2.

CaptainMonochrome
Fighter Fly
Fighter Fly
Posts: 47
Joined: Fri Aug 21, 2020 3:40 pm
Flair: SMW sprites rock!
Pronouns: he/him

Re: Super Acorn (With SMM2 Playables Support!)

Postby CaptainMonochrome » Wed Jan 12, 2022 5:22 pm

GlacialSiren484 wrote:
Wed Jan 12, 2022 12:39 am
This is really nice!
But from what I could tell I gotta hurry up updating the penguin sprites since it seems like the penguin suit is the next power up

Yeah, there's no way around the Penguin Suit's dominance. I've been steeling myself with regards to handling the sprite rotation I'll need to do to make sliding down slopes look nice. Can I please have your autograph?

TheGameyFireBro105 wrote: I mean, it's already half-way done, considering it's just an ice flower with frog suit attributes, a slide move, and immunity to ice physics. Considering this, the Frog Suit should be released in tandem with the Penguin Suit.

Unfortunately, this will not be the case. It might sound really easy, but keep in mind that there's a lot more to do, such as running on water, making SMM2 characters with altPhysics on always jump at their default maximum height, and also just straight up implementing the sprites in, which takes more effort than it might seem. Plus, unless it suddenly pulls ahead into first, then I've got other things to work on.

Neon358 wrote: I am so happy that new powerups are being added to SMBX2, making my life a lot easier.
Thanks Captain Monochrome!
However, is there any chance of doing a Mini Mushroom? I feel it may be hard, if not impossible to script in SMBX2.

You're welcome! Sadly, though, the nature of the Mini Mushroom actually means that, at least using anotherpowerup.lua, it's not possible to make. You see, all powerups make Mario act as though he's in Super Form or better, meaning that he can do things like break Brick Blocks and Rotating Blocks and powers down to Small Form. The latter of the two is pretty easy to manage, while the first is... not. I'd have to check, but I don't think that there's a way to cancel block breakage. It's a shame, but there's not really much I can do. Sorry!

Neon358
Rex
Rex
Posts: 35
Joined: Tue Apr 07, 2020 5:24 pm

Re: Super Acorn (With SMM2 Playables Support!)

Postby Neon358 » Wed Jan 12, 2022 5:52 pm

CaptainMonochrome wrote: You're welcome! Sadly, though, the nature of the Mini Mushroom actually means that, at least using anotherpowerup.lua, it's not possible to make. You see, all powerups make Mario act as though he's in Super Form or better, meaning that he can do things like break Brick Blocks and Rotating Blocks and powers down to Small Form. The latter of the two is pretty easy to manage, while the first is... not. I'd have to check, but I don't think that there's a way to cancel block breakage. It's a shame, but there's not really much I can do. Sorry!
That's fine. I saw on the original forum by Enji that you can't make mini mushrooms, so the only valid option is to create a new script entirely. Hopefully that is possible.

Are you eventually going to do the remaining powerups?

CaptainMonochrome
Fighter Fly
Fighter Fly
Posts: 47
Joined: Fri Aug 21, 2020 3:40 pm
Flair: SMW sprites rock!
Pronouns: he/him

Re: Super Acorn (With SMM2 Playables Support!)

Postby CaptainMonochrome » Wed Jan 12, 2022 6:19 pm

Neon358 wrote:
Wed Jan 12, 2022 5:52 pm
Are you eventually going to do the remaining powerups?

Yes.

I'd be mad with myself if I didn't.

GlacialSiren484
Goomba
Goomba
Posts: 3
Joined: Tue May 12, 2020 4:39 pm

Re: Super Acorn (With SMM2 Playables Support!)

Postby GlacialSiren484 » Wed Jan 12, 2022 6:26 pm

Yeah, there's no way around the Penguin Suit's dominance. I've been steeling myself with regards to handling the sprite rotation I'll need to do to make sliding down slopes look nice. Can I please have your autograph?
You can have my discord (GlacialSiren484#0347)

CaptainMonochrome
Fighter Fly
Fighter Fly
Posts: 47
Joined: Fri Aug 21, 2020 3:40 pm
Flair: SMW sprites rock!
Pronouns: he/him

Re: Super Acorn (With SMM2 Playables Support!)

Postby CaptainMonochrome » Wed Jan 12, 2022 7:36 pm

GlacialSiren484 wrote:
Wed Jan 12, 2022 6:26 pm
You can have my discord (GlacialSiren484#0347)
That works just as well! Thanks! Now to muster up the courage to put it in, haha.

TheGameyFireBro105
Eerie
Eerie
Posts: 747
Joined: Thu Jan 09, 2020 6:09 pm
Flair: Good at remakes
Pronouns: he/him

Re: Super Acorn (With SMM2 Playables Support!)

Postby TheGameyFireBro105 » Thu Jan 13, 2022 1:07 pm

If you add a cheat code for it, then the two ways it could work would be

needanacorn

and

needanut

Chilly14
Snifit
Snifit
Posts: 236
Joined: Thu Jul 18, 2019 10:28 pm
Flair: wash your hands and stay at home
Pronouns: he/him

Re: Super Acorn (With SMM2 Playables Support!)

Postby Chilly14 » Fri Jan 14, 2022 5:36 pm

Every time I start up the level with the powerup, this error appears:
Spoiler: show
Image
I don't think I'm doing anything wrong. I followed the instructions well.

CaptainMonochrome
Fighter Fly
Fighter Fly
Posts: 47
Joined: Fri Aug 21, 2020 3:40 pm
Flair: SMW sprites rock!
Pronouns: he/him

Re: Super Acorn (With SMM2 Playables Support!)

Postby CaptainMonochrome » Fri Jan 14, 2022 5:41 pm

Chilly14 wrote:
Fri Jan 14, 2022 5:36 pm
Every time I start up the level with the powerup, this error appears:
Spoiler: show
Image
I don't think I'm doing anything wrong. I followed the instructions well.
Ah, shoot. This one's on me. I was so focused on the Super Acorn that I forgot to include the custom versions of the ap_fireflower and ap_iceflower modules that are defaultly included with anotherpowerup.lua. I just updated the download, so feel free to redownload it. It should begin working then.

AlanLive2020
Dolphin
Dolphin
Posts: 98
Joined: Fri Nov 27, 2020 8:15 am
Flair: The guy with no social skills or self-esteem :')

Re: Super Acorn (With SMM2 Playables Support!) [v1.0b]

Postby AlanLive2020 » Mon Jan 17, 2022 9:58 pm

This is great!

I'm way too lazy/busy/incompetent to make custom powerups, so this is nice.

Now whats left is the blue shell, frog suit, penguin suit, propeller shroom (which i tried but coculdnt figure it out), p wing, p acorn, cat bell, and the p balloon from smm2.
Maybe then after we can make some original powerups.

Idk why i kinda just gave up with lua stuff for now

TheGameyFireBro105
Eerie
Eerie
Posts: 747
Joined: Thu Jan 09, 2020 6:09 pm
Flair: Good at remakes
Pronouns: he/him

Re: Super Acorn (With SMM2 Playables Support!) [v1.0b]

Postby TheGameyFireBro105 » Tue Jan 18, 2022 3:04 pm

Could you try and make it compatible with MrDoubleA's YI Yoshi?

CaptainMonochrome
Fighter Fly
Fighter Fly
Posts: 47
Joined: Fri Aug 21, 2020 3:40 pm
Flair: SMW sprites rock!
Pronouns: he/him

Re: Super Acorn (With SMM2 Playables Support!) [v1.0b]

Postby CaptainMonochrome » Tue Jan 18, 2022 4:00 pm

AlanLive2020 wrote: This is great!

I'm way too lazy/busy/incompetent to make custom powerups, so this is nice.

Now whats left is the blue shell, frog suit, penguin suit, propeller shroom (which i tried but coculdnt figure it out), p wing, p acorn, cat bell, and the p balloon from smm2.
Maybe then after we can make some original powerups.

Idk why i kinda just gave up with lua stuff for now

Thanks! While I don't really think I'm going to be doing anything with custom powerups, I do have plans for powerups that you haven't mentioned, so stay tuned!

TheGameyFireBro105 wrote:
Tue Jan 18, 2022 3:04 pm
Could you try and make it compatible with MrDoubleA's YI Yoshi?

Wait, MrDoubleA's YI Yoshi playable is compatible with powerups? If so, then, uh, that's great! The thing is, I don't really plan on doing anything with regards to characters outside of the vanilla five (at least, whoever has sprites out of them). Sorry!

Shodax
Swooper
Swooper
Posts: 53
Joined: Sat Feb 05, 2022 2:24 pm
Pronouns: he

Re: Super Acorn (With SMM2 Playables Support!) [v1.0b]

Postby Shodax » Tue Mar 08, 2022 2:16 pm

please edit the sprites for Luigi, Toad, and Peach.
I don't promise anything, but if I have time I'll try to help with those sprites edit them.

TheGameyFireBro105
Eerie
Eerie
Posts: 747
Joined: Thu Jan 09, 2020 6:09 pm
Flair: Good at remakes
Pronouns: he/him

Re: Super Acorn (With SMM2 Playables Support!) [v1.0b]

Postby TheGameyFireBro105 » Tue Mar 08, 2022 3:51 pm

CaptainMonochrome wrote:
Tue Jan 18, 2022 4:00 pm
AlanLive2020 wrote: This is great!

I'm way too lazy/busy/incompetent to make custom powerups, so this is nice.

Now whats left is the blue shell, frog suit, penguin suit, propeller shroom (which i tried but coculdnt figure it out), p wing, p acorn, cat bell, and the p balloon from smm2.
Maybe then after we can make some original powerups.

Idk why i kinda just gave up with lua stuff for now

Thanks! While I don't really think I'm going to be doing anything with custom powerups, I do have plans for powerups that you haven't mentioned, so stay tuned!

TheGameyFireBro105 wrote:
Tue Jan 18, 2022 3:04 pm
Could you try and make it compatible with MrDoubleA's YI Yoshi?

Wait, MrDoubleA's YI Yoshi playable is compatible with powerups? If so, then, uh, that's great! The thing is, I don't really plan on doing anything with regards to characters outside of the vanilla five (at least, whoever has sprites out of them). Sorry!
It technically can pick them up, which usually gives a set amount of health, but the acorn lacks the data to do it. The cape's fine, btw.

CaptainMonochrome
Fighter Fly
Fighter Fly
Posts: 47
Joined: Fri Aug 21, 2020 3:40 pm
Flair: SMW sprites rock!
Pronouns: he/him

Re: Super Acorn (With SMM2 Playables Support!) [v1.0b]

Postby CaptainMonochrome » Tue Mar 08, 2022 4:15 pm

Shodax wrote:
Tue Mar 08, 2022 2:16 pm
please edit the sprites for Luigi, Toad, and Peach.
I don't promise anything, but if I have time I'll try to help with those sprites edit them.
I'll definitely do Luigi now that someone's asked. If you're willing to handle Toad and Peach's sprites, then feel free to. I'd happily put add them in, credits and everything.
TheGameyFireBro105 wrote: It technically can pick them up, which usually gives a set amount of health, but the acorn lacks the data to do it. The cape's fine, btw.
Oh, I see. I'll have to check it out, in that case.


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 2 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari