(Solved) How to create a switch?

Hi. I want to make a puzzle game, so I need to make a switch. I need that, when the main character collides with the switch, an animation of the switch being pushed an after that a different animation, also changing some blocks to solid and also change its sprite. How can I do this?

This should help you.

1 Like

Thank you very much!