Working on a karate platformer, think Kung Fu Master where multiple enemies are approaching the player from both sides.
I want the enemies to block me from moving past them. I tried implementing this by adding solid behavior to both player and enemy objects, but this caused multiple enemies to 'stack up' behind each other, with the closest to the player essentially blocking the enemies behind them from attacking. If I add solid behavior just to the player, the player pushes all the enemies around. I like how things are working without the solid behavior, but I want to add the logic to prevent the player from moving past an enemy.
I have to think this has been implemented many times in the past, can someone offer guidance on what has worked well before I cobble up a sub-par solution of my own?
Thanks