Munchers are basically piranha plants that don't move, are only only block tall, and are indestructable.
Here is the code for plant.lua: https://raw.github.com/Stabyourself/mar ... /plant.lua
I pasted the entire plant.lua code into muncher.lua.
I want to do three things:
1. Change the height.
2. Make it indestructable.
3. Make it not move.
I was comparing the code with goomba.lua but I still don't get it.
I removed
Code: Select all
self.destroy = true
self.active = false
Code: Select all
function plant:shotted()
playsound(shotsound)
self.destroy = true
self.active = false