A door with a button
Section 4: Sound and movementLesson 4.3 · ⏱ 8 min

🖥️ What happens on the stage?
As long as the button is pressed the door opens (90), and when you let go it closes (0).
📌 Another example: a half-open door
When pressed, the door opens halfway (45), and when not pressed it closes (0).


✍️ Practise
Build the door.
✍️ Practise here in the lesson✖ Close the labor open the lab in a new page ↗
🎯 Challenge yourself
Easy
When pressed, the door opens to 180.
👀 Show the solution🙈 Hide the solution


Result: fully open.
Medium
One press: the door opens for 3 seconds, then closes by itself.
👀 Show the solution🙈 Hide the solution


Result: open, then it closes.
Hard
The opposite: the door is always open, and pressing closes it.
👀 Show the solution🙈 Hide the solution


Result: open, and closed when pressed.

