Ok so I'm making a mario like game. But the question is how can I make it so you have to jump on the enemy to kill it. But if you walk into the enemy on either side you die. Please help
I'm not exactly sure if this is the best or easiest way to do this, but I would constrain three objects to the edges of the enemy. Then setup rules that say when the main actor collides with the side actors do something like destroy the actor and then another that says when it collides with the top actor destroy the enemy. Hope this helps - let me know if you have any questions.
Comments
http://www.jamie-cross.net/?p=607
Search is your friend, LOL!
Jamie
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page