This is my first time adding entities to Mari0 so I don't know much.
Sašo wrote:Don't post in help threads if you don't intend to help.
Sašo wrote:Don't post in help threads if you don't intend to help.
Code: Select all
function item(i, x, y, size)
[...]
elseif i == "poisonmush" then
table.insert(objects["poisonmush"], poisonmush:new(-0.5, y-2/16))
end
end
Code: Select all
function poisonmush:floorcollide(a, b)
if a == "player" then
b:die("poisonmush")
self.active = false
self.destroy = true
self.drawable = false
end
end