SMB3 Flame Chomp (Custom LunaLua API)
Posted: Thu Mar 03, 2016 6:15 pm
This is my first LunaLua API. Rednaxela from Talkhaus was a great help. Kevsoft also helped me getting started with LunaLua.
It behaves very closely to SMB3. It chases the player. It has four fireballs and it will shoot each out towards the player. Once it's shot all four, it will explode. It can be killed in all ways except Ice Flower.
To use:
It behaves very closely to SMB3. It chases the player. It has four fireballs and it will shoot each out towards the player. Once it's shot all four, it will explode. It can be killed in all ways except Ice Flower.
To use:
- Extract the files from the download below to your level folder, create a "lunadll.lua" host file and put the following code in it:
Code: Select all
local flameChomp=loadAPI("flamechomp") function onStart() flameChomp.setSections({0}) end
- It replaces the SMB3 brown Paragoomba. You can place it in the editor normally (set it to Chase).
- To have it spawn automatically throughout the level (like normal), you must create an event called "Flame Chomp" and have it activate at some point in the level. Place an NPC that will activate the event at the point where you want them to begin spawning. Make the event happen automatically at Level Start if you want them to begin spawning immediately.
- setSections takes a table of numbers that represent the sections you want the Flame Chomp to automatically spawn in. The number must be the section number minus one. The above code only makes them spawn in section 1 for example. To make them spawn in sections 1, 5 and 6 for example, the code would look like this:
Code: Select all
local flameChomp=loadAPI("flamechomp") function onStart() flameChomp.setSections({0,4,5}) end
- You can use the normal SMB3 Goomba normally despite the Flame Chomp replacing the brown Paragoomba!