1 decade ago by Silent
Hi :)
I'm working on a 2-player coop game and I'm having a bit of an issue getting collision right. I have a base entity that both players as well as other entities inherit from, and I want entities of the same type to never overlap - so if a player moves towards another player, it should just stop as if he hit a wall. I know this can be done with active-fixed, but I'm not sure how. The problem with active-active collision is that it breaks my grid.
Basically, my entities should never overlap each-other - even if they're of the same type, so if an entity is about to move into another entity, it should just stop moving.
I hope my explanation is good enough.
Thanks in advance.
I'm working on a 2-player coop game and I'm having a bit of an issue getting collision right. I have a base entity that both players as well as other entities inherit from, and I want entities of the same type to never overlap - so if a player moves towards another player, it should just stop as if he hit a wall. I know this can be done with active-fixed, but I'm not sure how. The problem with active-active collision is that it breaks my grid.
Basically, my entities should never overlap each-other - even if they're of the same type, so if an entity is about to move into another entity, it should just stop moving.
I hope my explanation is good enough.
Thanks in advance.