Hallo! Im creating a plattaformer game like mario bros of nes, but i dont know how to kill a creature (goomba) with mario u.u
I know how to disappear the goomba when i touched but i want kill him when when stepped on goomba.
anyone know how I can do that?
Sorry if my english is so bad, im trying to learn the languaje c:
Check beginners tutorials first.
Add the "Destroy" action to the goomba. Or do you mean the death of mario?
The problem is that if I add a collision check and mario hits the goomba from the side the goomba is destroyed (I want it to be destroyed only if Mario steps on it)
Develop games in your browser. Powerful, performant & highly capable.
Ahh, in that case add a condition "Mario.Y > Goomba.Y + Goomba.Height/2" to the destroy condition, assuming the goomba's hotspot (chosen mid point of image) is at it's centre then it will only work when mario is landing from above the goomba's head. Otherwise hurt the player