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

#1 2012-09-04 09:14:07

lizzyhippo
Scratcher
Registered: 2012-04-10
Posts: 89

Walls?

I am making a plat former, and I need to know how to  make solid walls. How?


http://i50.tinypic.com/ofvtpy.png

Offline

 

#2 2012-09-04 11:10:00

randomguy200
Scratcher
Registered: 2012-05-28
Posts: 16

Re: Walls?

I hope this helps:

when gf clicked
forever
if <touching color (wall color)?>
if < [right arrow v] key pressed?>
move (-2) steps
if < [left arrow v] key pressed?>
move (2) steps
end
end
end

Last edited by randomguy200 (2012-09-04 11:13:15)


http://scratch.mit.edu/static/projects/randomguy200/2757355_sm.png-Check it out  big_smile , go on  cool !

Offline

 

#3 2012-09-04 12:03:22

lizzyhippo
Scratcher
Registered: 2012-04-10
Posts: 89

Re: Walls?

randomguy200 wrote:

I hope this helps:

when gf clicked
forever
if <touching color (wall color)?>
if < [right arrow v] key pressed?>
move (-2) steps
if < [left arrow v] key pressed?>
move (2) steps
end
end
end

Thank you!


http://i50.tinypic.com/ofvtpy.png

Offline

 

#4 2012-09-04 12:11:26

zammer990
Scratcher
Registered: 2012-01-22
Posts: 500+

Re: Walls?

lizzyhippo wrote:

randomguy200 wrote:

I hope this helps:

when gf clicked
forever
if <touching color (wall color)?>
if < [right arrow v] key pressed?>
move (-2) steps
end
if < [left arrow v] key pressed?>
move (2) steps
end
end
end

Thank you!

Doing it the original way wouldn't work, you need to have them independant


http://i45.tinypic.com/2ynq7nn.jpg Play now!

Offline

 

#5 2012-09-04 15:45:19

dvd4
Scratcher
Registered: 2010-06-30
Posts: 1000+

Re: Walls?

when gf clicked
forever
if (in wall)
go back [-1]
end

Last edited by dvd4 (2012-09-04 15:46:52)


I made a mod  big_smile  It's called blook!
http://i49.tinypic.com/16ia63p.png

Offline

 

Board footer