prime31 / CharacterController2D

1.07k stars 248 forks source link

Colliding against Enemies that are also CC2D #71

Closed LittleCodingFox closed 7 years ago

LittleCodingFox commented 8 years ago

When I use Enemies and Players as Platform Masks (on each other, so not both at the same time), they wiggle about and never really stop the player from moving. How should I implement enemy/entity collisions? I read something about inverting collisions but I have no idea how to do that code-wise.