This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2008-04-21 06:05:55

hp001
Scratcher
Registered: 2008-04-20
Posts: 4

Stopping a pen going through a "wall"

I have a pen that is one colour and wall of another colour but when i use the script

<when green flag clicked>
<forever>
<if><mouse down?>
<pen down>
<go to[ mouse pointer?
<end>
<if><color[ red ] is touching [ green
<clear>
<go to x sad  -224 )y sad  172

but it doesnt work if the pen line is going over the wall only the active sprite. Help please

Offline

 

#2 2008-04-21 22:02:16

coolkid001
Scratcher
Registered: 2008-01-04
Posts: 19

Re: Stopping a pen going through a "wall"

hp001, i have made a project that, hopefully, may have solved your problem. Unfornately, i don't know how to post a link, but you can just click on my name and go to the project that says your name. Your welcome! please comment on it if it helped or not.

Last edited by coolkid001 (2008-04-21 22:02:42)


ROFLWAFFLE

Offline

 

#3 2008-04-21 22:18:06

heybrian_
Scratcher
Registered: 2008-04-04
Posts: 100+

Re: Stopping a pen going through a "wall"

i made an adaption to coolkids, which makes the red invisable. http://scratch.mit.edu/projects/heybrian_/146991

Offline

 

Board footer