In my game there is a certain type of block that is activated when shot. When it is activated the player can now collide with it instead of passing through it. The problem is if the player is already colliding with it and then shoots the block the player becomes stuck.. My original idea was to make it so that if the player shoots it and is colliding with it, the player teleports a few pixels away until it is no longer colliding. But i dont know if that solution is a good idea. How would you go about solving this issue?