Introduction:
The runner is running to the finish line and when the person is near the railing, we press the button, the runner will jump over the obstacle , and if the runner touch the railing, he will be back to the start line.
The hurdle game will finish if the runner touches the red finish line.
Parts List
1. 1 x pcDuino
2. 1 x Linker button
Step 1: Install the linker base to the pcDuino, then connect the linker button as follows
Step 2: Click Stage to import the background:
Import the runner:
Then draw the obstacle:
The red finish line:
Write the Script:
Click the Green flag, the runner will move.
when the runner touches the obstacle, it will display “try again”:
When the runner touches the red line,it will display “success”:
Download the Code:3-run.zip
Leave a Reply
You must be logged in to post a comment.