I'm working on a programming exercise where I need to move a square that's half blue and half red along a specified path. The challenge is that I need to avoid touching the yellow edges; the goal is to reach a green spot at the end of the map. I've been following the instructions in my book, but I'm struggling to implement this in Scratch. Any help would be appreciated!
1 Answer
I get that it's tricky! Think of the square like it's driving a car. If it's about to hit the right side (the red side), it should turn left (counter-clockwise). If it's nearing the left side (the blue side), it should turn right (clockwise). Make sure to check how your square reacts in those situations; there might be a small detail you're missing. Also, try widening the path a bit to help with navigation!

I actually tried widening the path, but it still gets stuck on the yellow edges. Any other tips?