I need to know how to replace a sprite with another sprite while the player is standing on it
Im trying to make platforms that change colour or have different collisions based on triggers. For example, a green rectangle turning into an orange circle on the trigger of a button
One problem that comes up is that when the sprite "morphs", since the circle is bigger than the rectangle, the player gets stuck in the circle if he was standing on the rectangle
Id also like to know if I can carry a variable across when the sprite changes, or how to set the new sprite to the same angle(some platforms may be rotated)