[npc] getpiranha

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

Moderator: Userbase Moderators

deice
Rocky Wrench
Rocky Wrench
Posts: 620
Joined: Fri Jul 23, 2021 7:35 am

[npc] getpiranha

Postby deice » Fri Jul 01, 2022 7:12 am

a less janky version of the custom sprite from hyper vi
get: show
Image
on it's own, it's just a worse muncher that follows you around. however, it can eat any standard powerup or a fairy pendant (inflicts harm type 9) to gain a special set of abilities.

powerup descriptions
Spoiler: show
mushroom
  • greatly increased movement speed
fire flower
  • shoots a fireball periodically
leaf
  • slightly increased movement speed
  • increased jump height
tanooki suit
  • slightly increased movement speed
  • increased jump height
  • impervious to all harm types except 2 and 6 (from below, lava)
hammer suit
  • slightly increased movement speed
  • throws a hammer periodically
  • impervious to some things such as fireballs (harm types 3 and 4)
ice flower
  • slightly increased movement speed
  • periodically spits out an active ice block
fairy pendant
  • ignores block collision
  • begins to fly and chase the player around kind of like a phanto

additional notes
  • is affected by filter blocks (because i thought it would be funny)
  • doesn't care about powerup tiers. any powerup it eats will override what it previously had (pretty sure this is accurate to its behavior in the source game)
  • doesn't eat friendly powerups
  • doesn't eat anything if it is itself friendly
  • powers down if it eats a poison mushroom (can be disabled using the npc config "nopoison")
  • has a per-instance setting in the editor if you wish to have it spawn with a specific powerup
download (get)
Last edited by deice on Sun Oct 29, 2023 2:27 pm, edited 3 times in total.

AirShip
Fuzzy
Fuzzy
Posts: 1086
Joined: Wed Jan 01, 2014 1:30 am
Flair: The Flying Ghost
Contact:

Re: [npc] getpiranha

Postby AirShip » Fri Jul 01, 2022 12:54 pm

The only thing that bothers me is the lack of a transition when picking up the powerup.

Other than that, excellent work!

deice
Rocky Wrench
Rocky Wrench
Posts: 620
Joined: Fri Jul 23, 2021 7:35 am

Re: [npc] getpiranha

Postby deice » Fri Jul 01, 2022 1:01 pm

AirShip wrote:
Fri Jul 01, 2022 12:54 pm
The only thing that bothers me is the lack of a transition when picking up the powerup.

Other than that, excellent work!
in hyper vi they also don't have a transition save for the swallowing sound, but i get why one would be desirable (something more visual, i didn't wanna make the powerup sound play when they ate one to avoid confusing the player haha).
if i get the time i might implement one, thank you for the feedback ^^

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: [npc] getpiranha

Postby Chilly14 » Fri Jul 01, 2022 6:24 pm

I'd like to see an interaction between these guys and Poison Mushrooms, such as returning to their normal white coloration upon eating them.

Other than that, this is evil and I like it.

deice
Rocky Wrench
Rocky Wrench
Posts: 620
Joined: Fri Jul 23, 2021 7:35 am

Re: [npc] getpiranha

Postby deice » Sat Jul 02, 2022 7:05 am

Chilly14 wrote:
Fri Jul 01, 2022 6:24 pm
I'd like to see an interaction between these guys and Poison Mushrooms, such as returning to their normal white coloration upon eating them.
that was actually very easy to implement and i'm surprised i hadn't thought of it before.

i've updated the download link with a new version that includes said poison mushroom interactions as well as a brief animation that happens when they eat a powerup.


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 3 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari