Goal:
Now it’s time to program IG-11 to roam throughout the maze.
The droid is an obstacle that scratch must avoid!
We will code the droid to glide to different positions on the screen.
Steps:
- From Control, place a forever block.
- From Motion, drag a glide secs to X/Y.
- From Control, drag a Wait.
- Move IG-11 into a new position.
- From Motion, drag a glide secs to X/Y.
- Move IG-11 into a new position.
- From Motion, drag a glide secs to X/Y.
- Move IG-11 into a new position.
- From Motion, drag a glide secs to X/Y.
- Move IG-11 into a new position.
- Increase or decrease the seconds of any of the glides to change the droid’s speed.