I have an object which is destructible, meaning when the object is hit by the player I spawn a duplicate of this object which has been designed in Gimp to look destroyed. However, I'm struggling with rotating this towards the point of impact between these two objects. How can I detect where collision between objects occur?
I've tried with something like Set angle to Sprite.XXX.Angle, which works kind of ok, as long as the "front" of the player hits the other object. However, if it is hit from the side of the player, it doesn't look as good.