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

#1 2013-04-18 13:20:29

jn3579
New Scratcher
Registered: 2012-02-27
Posts: 20

detection wall help

i know you can use the wall color to sence if you hit the wall but is there a way to sence your y or x axis and make your sprite stop when it reaches it?

Offline

 

#2 2013-04-18 13:23:40

MaybeScratchCat
New Scratcher
Registered: 2013-04-16
Posts: 14

Re: detection wall help

Yeah, you can use the

(x position)(y position)
blocks.
Try this script:
When gf clicked
forever
if <<(x position) = [whatever x you want]> and <(y position) = [whatever y you want]>>
stop all
end

Offline

 

#3 2013-04-18 13:24:58

powerpoint56
Scratcher
Registered: 2012-04-19
Posts: 500+

Re: detection wall help

MaybeScratchCat wrote:

Yeah, you can use the

(x position)
(y position)
blocks.
Try this script:
When gf clicked
forever
if <<(x position) = [whatever x you want]> and <(y position) = [whatever y you want]>>
stop all
end

Fixed.  wink


http://i48.tinypic.com/2072ctw.gif

Offline

 

#4 2013-04-18 13:25:55

jn3579
New Scratcher
Registered: 2012-02-27
Posts: 20

Re: detection wall help

thanks for the help

Offline

 

Board footer