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

#1 2011-12-25 18:32:54

Thalila5890
New Scratcher
Registered: 2011-12-25
Posts: 3

Solid Walls (Pleeeeeeeeeeeease help me)

How do I make my walls solid?

Offline

 

#2 2011-12-25 20:03:14

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Solid Walls (Pleeeeeeeeeeeease help me)

You could try color sensing, sprite sensing, or x and y position sensing :S


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#3 2011-12-25 20:41:32

WingsGames
Scratcher
Registered: 2011-02-21
Posts: 500+

Re: Solid Walls (Pleeeeeeeeeeeease help me)

If sprite1 touching color (wall color), move 0 steps.


Are you an aspiring home decorator? If so, please answer my question!

Offline

 

#4 2011-12-25 22:03:42

mcpNOVA
Scratcher
Registered: 2011-12-05
Posts: 100+

Re: Solid Walls (Pleeeeeeeeeeeease help me)

Jonathanpb wrote:

You could try color sensing, sprite sensing, or x and y position sensing :S

I would recommend the ones I underlined, only because it's pretty basic. I actually use variables, but i'm bad at explaining how. XD


http://i43.tinypic.com/n5fqcz.jpg

Offline

 

#5 2011-12-25 22:06:42

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

Re: Solid Walls (Pleeeeeeeeeeeease help me)

<when green flag clicked>

<if><key[         ]pressed?>

<change x by( 1)>

<if>  <touching color[ wall ]>

<change x by( -1)>

<end>

<end>

Last edited by shiguy101 (2011-12-25 22:08:27)

Offline

 

#6 2011-12-25 22:10:36

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Solid Walls (Pleeeeeeeeeeeease help me)

Here's a method that I use a lot that's pretty simple...

http://scratch.mit.edu/projects/Paddle2SeeFixIt/188825


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#7 2011-12-26 22:28:57

Mokat
Scratcher
Registered: 2011-12-08
Posts: 1000+

Re: Solid Walls (Pleeeeeeeeeeeease help me)

Try a little something like this:
<when green flag clicked>
<wait until><touching color[
<go to x sad  0 )y sad  0

What this does, is it makes it so that when the sprite is touching a color, it goes back to a certain point, like the start of a maze.


http://www.eggcave.com/egg/977371.pnghttp://www.eggcave.com/egg/977376.pnghttp://www.eggcave.com/egg/1005291.pnghttp://www.eggcave.com/egg/996745.png

Offline

 

#8 2011-12-26 22:46:01

MaxFlyboy
Scratcher
Registered: 2011-11-07
Posts: 100+

Re: Solid Walls (Pleeeeeeeeeeeease help me)

You could add a script to the wall by doing this (must have a variable for all sprites)

When green flag clicked
set (variable to 0)
forever start
if touching (the sprite you want it to stop) start
set (variable) to 1
if end
if not touching (the sprite you want it to to stop) start
set (variable to 0)
forever end

and in the moving sprite you could do this

when green flag clicked
forever
if key right key pressed start
change x by 10
if (variable) equals 1 start
change x by -10
both ifs end
forever end

That way it doesn't need to be color sensing or hard to do x y position sensing


http://cdn.voodoofilm.org/images/upload/thumb/viral-video-2011.jpg click the picture for an AMV

Offline

 

Board footer