π οΈ Section project: the dance party
Section 6: Turning, costumes and waitingLesson 6.4 Β· β± 10 min
π― Project goal
Two characters dance together when you tap π©: each one turns and jumps 4 times, then says a word.
π Note
Add a character: tap β next to the characters and pick one. Tap a character to code it: every character has its own blocks.
π€ Robo

- When π© is tapped
- Play note π΅ 1
- Repeat π 4 times:
- β³ Turn right β» 3
- β³ Hop π¦
- Say π¬ βRobo's dance!β
π§ Girl

- When π© is tapped
- Repeat π 4 times:
- β³ Next costume π
- β³ Hop π¦
- β³ Turn left βΊ 3
- Say π¬ βAnd I'm dancing!β


- Pick the room background π.
- Code Robo: a note, then a π with turning and jumping.
- Add the girl and code her with a different dance.
- Tap π© and watch.
π Another example: a party with three characters
Robo turns right, the cat changes her costume, and the dog turns left, and they all hop 4 times together.
π€ Robo

- When π© is tapped
- Repeat π 4 times:
- β³ Turn right β» 3
- β³ Hop π¦
π± Cat

- When π© is tapped
- Repeat π 4 times:
- β³ Next costume π
- β³ Hop π¦
πΆ Dog

- When π© is tapped
- Repeat π 4 times:
- β³ Turn left βΊ 3
- β³ Hop π¦


βοΈ Practise
Add a third character that dances its own dance.
βοΈ Practise here in the lessonβ Close the labor open the lab in a new page β
π― Challenge yourself
Easy
The size dance: Robo grows and shrinks 4 times.
π Show the solutionπ Hide the solution

- When π© is tapped
- Repeat π 4 times:
- β³ Grow π
- β³ Shrink π

Medium
Robo dances, and the girl goes up and down 4 times at the same time.
π Show the solutionπ Hide the solution
π€ Robo

- When π© is tapped
- Play note π΅ 1
- Repeat π 4 times:
- β³ Turn right β» 3
- β³ Hop π¦
π§ Girl

- When π© is tapped
- Repeat π 4 times:
- β³ Move up β¬οΈ 1
- β³ Move down β¬οΈ 1

Hard
Taking turns: Robo dances first and then sends a message, so the cat starts her dance.
π Show the solutionπ Hide the solution
π€ Robo

- When π© is tapped
- Repeat π 4 times:
- β³ Turn right β» 3
- β³ Hop π¦
- Send a pink message βοΈ
π± Cat

- When a pink message arrives π©
- Repeat π 4 times:
- β³ Next costume π
- β³ Hop π¦
- Say π¬ βMy turn is over! πβ


