Lithioq
09-10-2008, 11:00 PM
I am making a beat em up game (side scrolling) but run into one problem.
Is there a way to make it so your hero can only hit the enemy if they are on the same line? I mean in a game where you can go north and south, if you use hitTest, sometimes you can still kick an enemy if your on the top and they are on the bottom. This is especially an issue with larger bosses. It's hard to explain but I hope someone understands what I mean. Think of something similar to castle crashers where if you are on a higher plane you can not smack the enemy. How do I put this system in since I feel it's more accurate and fun.
Thanks for any that help.
Is there a way to make it so your hero can only hit the enemy if they are on the same line? I mean in a game where you can go north and south, if you use hitTest, sometimes you can still kick an enemy if your on the top and they are on the bottom. This is especially an issue with larger bosses. It's hard to explain but I hope someone understands what I mean. Think of something similar to castle crashers where if you are on a higher plane you can not smack the enemy. How do I put this system in since I feel it's more accurate and fun.
Thanks for any that help.