ScratchData LogoScratchData
Back to scratchusername40's profile

Smart Avoidance v. 1

SCscratchusername40•Created July 2, 2020
Smart Avoidance v. 1
0
0
2 views
View on Scratch

Instructions

Press the flag and watch. The pen size is set to the distance to the edge or the obstacle. If the ball gets stuck, press the R key or the reset button to reset it.

Description

The ball moves randomly unless it is close to a wall. It then moves away from the wall. @onmax for the distance detection. Everything else by me.

Project Details

Project ID409200601
CreatedJuly 2, 2020
Last ModifiedJuly 2, 2020
SharedJuly 2, 2020
Visibilityvisible
CommentsAllowed