Hi there,
I am looking for the best way to take damage. The collision system I am using is as so:
Take a 64x64 object - Add 4 small rectangles, 1 on each side. Create methods in each object class to where if one rectangle intersects another objects rectangle (specified side on both), do something.
I am NOT looking to change my collision system, but more for the best way to add damage to a player.
Because, at the moment… when the player collides, it just subtracts health the entire time they are touching, rather than just once on the next one. I may add it so that the player gets knocked back or something…
Thanks!