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

#1 2013-03-29 12:59:09

whatsitsname
New Scratcher
Registered: 2013-03-29
Posts: 7

how when a sprite touches a colour it resets to a specific position

plz help  sad

Offline

 

#2 2013-03-29 13:09:47

Maltese_Falcon
Scratcher
Registered: 2013-03-25
Posts: 100+

Re: how when a sprite touches a colour it resets to a specific position

Something like:

When gf clicked
forever
if <touching color [red]>
Go to x:[0] y: [0]
end
end

Offline

 

#3 2013-03-29 14:28:16

7734f
Scratcher
Registered: 2010-12-23
Posts: 500+

Re: how when a sprite touches a colour it resets to a specific position

when gf clicked//starts the script
forever//always checks for what's inside of the loop
 if <touching color [#00FF00]?>//if it is touching this color, it does this
  go to x: (7) y: (14)//goes to a position within the 480x360 screen
 end
Hope that helped!
   
        ~7734f

Last edited by 7734f (2013-03-29 14:28:58)


http://internetometer.com/image/38992.png   http://i37.tinypic.com/2qixx6c.png

Offline

 

#4 2013-03-30 04:59:23

whatsitsname
New Scratcher
Registered: 2013-03-29
Posts: 7

Re: how when a sprite touches a colour it resets to a specific position

thanks guys

Offline

 

Board footer