Page 1 of 1

[NPC Pack] Plonker

Posted: Thu Jun 27, 2019 2:01 pm
by Emral
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)

Re: [NPC Pack] Plonker

Posted: Thu Jun 27, 2019 9:43 pm
by Wiimeiser
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.

Re: [NPC Pack] Plonker

Posted: Fri Jun 28, 2019 2:06 am
by ElectriKong
Did you change the ID for every file (npc-n.png, npc-n.txt and npc-n.lua)?

Re: [NPC Pack] Plonker

Posted: Fri Jun 28, 2019 8:57 pm
by Wiimeiser
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.