[NPC Pack] Plonker

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

Moderator: Userbase Moderators

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9890
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

[NPC Pack] Plonker

Postby Emral » Thu Jun 27, 2019 2:01 pm

Like a swooper, just more friend-shaped.

A download link can be found here:
https://drive.google.com/file/d/1BeAdgt ... sp=sharing

Demo:
https://www.youtube.com/watch?v=iuFO-R_ISsY
1:02

Installation instructions can be found in the handbook or in my thread.

Modifications and adaptations of the code is permitted. If you use this particular code as a basis for an enhanced version of these NPCs, please give credit.

NPC codes:
Stationary:
minrange: minrange (minimum trigger range in facing direction)
maxrange: 144 (maximum trigger range in facing direction
shockframes: 2 (frames on spritesheet dedicated to being shocked)
shocktimer: 64 (time before falling)
health: 3 (fireball health)
fallingid: 756 (id the npc transforms into when falling)

Falling:
health: 3 (fireball health)
earthquakes: 2 (strength of earthquake effect)
bounceheight: 8 (self-explanatory)

Wiimeiser
Snifit
Snifit
Posts: 215
Joined: Mon Jun 24, 2019 4:36 am
Flair: What?

Re: [NPC Pack] Plonker

Postby Wiimeiser » Thu Jun 27, 2019 9:43 pm

Problem: If I change the NPC ID it doesn't move after falling, and I can't kill it except by freezing it (which shouldn't work according to the lua file) or using the Lucky Star. I have no idea why this is happening, all I did was change the ID...

EDIT: Changing the NPC ID works in another episode, so maybe there's a conflict somewhere...

EDIT2: Conflict could be the beep blocks. Also, for some reason it's not registering me if I'm to its right.

ElectriKong
Bowser
Bowser
Posts: 4652
Joined: Mon Jun 06, 2016 4:32 pm
Pronouns: he/him
Contact:

Re: [NPC Pack] Plonker

Postby ElectriKong » Fri Jun 28, 2019 2:06 am

Did you change the ID for every file (npc-n.png, npc-n.txt and npc-n.lua)?

Wiimeiser
Snifit
Snifit
Posts: 215
Joined: Mon Jun 24, 2019 4:36 am
Flair: What?

Re: [NPC Pack] Plonker

Postby Wiimeiser » Fri Jun 28, 2019 8:57 pm

I did. As far as I can tell, it's a conflict with the Beep Blocks. I have two episodes in the same episode folder, and the only difference between the two is the one where it doesn't work has the sample luna.lua code to run the Beep Blocks.


Return to “LunaLua”

Who is online

Users browsing this forum: Rodriv64 and 3 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari