Hey! All you mario game makers! What is the easiest way to kill a goomba, but if you touch him on the side you die?
Offline
I'd recommend keeping track of your previous location, and if you come from above, he dies, and if from the side, you do.
Offline
the goombas are moving so I can't really do that. I thought maybe I could have a second sprite (mostly invisible) do the same thing a the first and when it's touch it sends a broadcast, would that work?
Offline
I think even if the goombas are moving you could do that. Just check where its position is, and if it moved, you die.
Offline
any other possible suggestions ( I ant to try a variety of solutions)
Offline
try
forever if <touching [goomba v]?> if <color [#6e5641] is touching [#6e5641]?> //mario's brown shoes are touching a brown goomba broadcast [killgoomba v] else broadcast [damaged v] end
Last edited by joefarebrother (2012-04-11 13:16:54)
Offline
If you can determine how many Y-units the goomba is tall, and then post a script that says, if mario is touching goomba and y>however tall the goomba is, then a broadcast is sent, saying the goomba dies. Then under it, put another if block, that says, if mario is touching goomba, and y<however tall the goomba is, damage mario. This should work.
Offline