Learn how to change the robots behavior based on events.
ALL students will: Learn how to hide sprites when touching the robot
MOST students will: Learn how to increase the speed as it touches each sprite
SOME students may: Learn how to change the robots direction as it touches a particular sprite.
Robots do not only need a path to travel, but they also need event triggers so it can react to their environment.
As of right now, you should have a much better version of the screenshot below. A robot sprite, and a maze which triggers it to turn left and right, based on the color.
Task 1: Increase speed by 1.
Welcome to variables! Throughout the path of the robot, there should be at least 4 sprites that increase the speed by 1.
Below is a hint on how
Task 2: Change the direction
Welcome to functions! This might be harder than you think.
There needs to be a sprite that reverses the robot's path (turns right on green, and left on red).
You need to create your own blocks.
What do you want the robot to sense when going clockwise, what about counterclockwise?
You need to call these functions when ever it touches the sprite which reverses the direction.
Can you add a second costume to your robot so when it moves, it gives the illusion of animation?
On your portfolio:
An embedded video of your device moving around the path, collecting the sprites, and changing direction.
A screenshot of your code
A written explanation on what your code and sprite is doing.