What bricks and objects do you need?
Create a new program and add the following objects from the media library:
Now add these scripts to the move button 1 object:
1. Step
Position the first button in the upper left corner. Also set the size to a value you like.
2. Step
If the button is tapped by the first player, the button sends the message “move1” to all other objects. Only rabbit 1 will react to this message.
Now add these scripts to the move button 2 object:
3. Step
Now add the object move button 2 for the second player. Position it in the upper right corner of your screen.
4. Step
When the move button 2 object is tapped, the message “move2” will be sent to all objects but only rabbit 2 will react to this message.
Now add these scripts to the Rabbit 1 object:
5. Step
Download these two looks from the media library.
6. Step
First position rabbit 1 in the lower left corner.
7. Step
When the first button is tapped, the “move1” message is sent. If this happens rabbit 1 should react. The when you receive-brick allows you to communicate between objects. Now rabbit 1 changes it y-value by 20 and switches to its next look.
Now add these scripts to the Rabbit 2 object:
8. Step
Download these two looks from the media library.
9. Step
Similar to rabbit 1, position rabbit 2 in the lower right corner. Additionaly change the color for a different appearance.
Now add these scripts to the goal line object:
11. Step
The object goal line needs three different looks. One look is for the goal line itself and the other two looks are for the winning screen of the game. Draw these looks with Pocket Paint. You can additionaly use images from the media library.
12. Step
When rabbit 2 touches the goal line, set the you win rabbit 2 look.