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

#1 2012-12-16 11:37:50

dariusz1221
New Scratcher
Registered: 2012-12-16
Posts: 8

scratch help

how do i make a sprite not go on part of my stage?

Offline

 

#2 2012-12-16 11:48:12

letmethink
Scratcher
Registered: 2010-05-09
Posts: 100+

Re: scratch help

tell it to hide


Clicky Clicky!!!               I am writing a book...             Look here

Offline

 

#3 2012-12-16 12:28:53

GenChico
Scratcher
Registered: 2012-11-08
Posts: 100+

Re: scratch help

Put the hide block in one of your scripts. Hope I helped.


http://i.imgur.com/Cb8HC.png

Offline

 

#4 2012-12-16 13:29:37

dariusz1221
New Scratcher
Registered: 2012-12-16
Posts: 8

Re: scratch help

but wont that just hide the sprite? i just want a border around an area so the sprite stops at the area.

Offline

 

#5 2012-12-16 13:35:55

letmethink
Scratcher
Registered: 2010-05-09
Posts: 100+

Re: scratch help

Oh, do you want to make it bounce off the edge-

Try if on edge bounce block


Clicky Clicky!!!               I am writing a book...             Look here

Offline

 

#6 2012-12-16 21:22:38

dariusz1221
New Scratcher
Registered: 2012-12-16
Posts: 8

Re: scratch help

the area i dont want my sprite is in the middle of the screen and the user has control of the sprite but i dont want the user to go in the middle.

Offline

 

#7 2012-12-16 21:38:37

shiguy101
Scratcher
Registered: 2010-11-17
Posts: 1000+

Re: scratch help

try this.  dark green is the wall color


forever  

if <key [up arrow v] pressed?> 

change y by (10)

if <touching color [#1C7A3E]?> 

change y by (-10)

end

end

if <key [down arrow v] pressed?> 

change y by (-10)

if <touching color [#1C7A3E]?> 

change y by (10)

end

end

if <key [right arrow v] pressed?> 

change x by (10)

if <touching color [#1C7A3E]?> 

change x by (-10)

end

end

if <key [left arrow v] pressed?> 

change x by (-10)

if <touching color [#1C7A3E]?> 

change x by (10)

end

end

end

Offline

 

Board footer