Here's an example of a switch activated door which rotates open and snaps shut.
4 events, 1 private variable used on the Sprite 'Door'.
Develop games in your browser. Powerful, performant & highly capable.