In my project, I have a red line being drawn, and while it's being drawn, it's intersecting with a blue line. I'm making it so it stops when it hits the blue line, so I made it say
<repeat until><touching color[ blue
<move( 1 )steps>
<end>
Whenever I try the script, the red line just passes the blue line. What am I doing wrong?
Offline
Are you drawing both lines at the same time? If so, the red may pass the intersection point before the blue reaches it. Is the red line horizontal or vertical?
Offline
Coolstuff's solution works well, but as long as the blue line isn't being drawn by the pen (it is a static image), you can just use your current script, but make the blue line a sprite instead of part of the background. That worked for me.
EDIT: I looked at the project; guess my solution doesn't work in this case.
Last edited by Harakou (2010-07-02 21:44:12)
Offline
Thanks
Here's the project, incase you wanted to see it.
http://scratch.mit.edu/projects/Greentabby55/1168163
Offline