lordlight7 wrote:I can't figure out why i can stand on the enemy even after the HC.remove(shape) and get 1000 more health.
It's a shot in the blue (
since you did not provide a .love), but I guess it's due to two things:
Firstly, you roll your own collision detection loop (which is fine), but at the same time use the full collider API (which does it's own collision detection). If you use the full API, collisions are reported by the callback-system and there is no need for shape:collidesWith(other).
If you don't, you should not create shapes with Collider:addRectangle(...), but rather using shapes.new<FOO>Shape().
Secondly, you remove a colliding object from the internal object manager (via HC.remove(obj)), but not from the enemies table (which you should do, if you use shape:collidesWith()).