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

#1 2011-12-25 17:39:23

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

Solid Walls

How do I make the walls on my video game solid? :p

Offline

 

#2 2011-12-26 23:54:50

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

Re: Solid Walls

you could do this

add this script to the wall

when green flag clicked
set (variable) to one
forever start
if touching (the sprite you want it to be solid to)
set (variable) to one
if end
if not touching (the sprite you want it to be solid to)
set (variable) to zero
forever end

You may be asking: How does this help? well here's how

put this script under the sprite you want it to be solid too

when green flag clicked
forever start
if key right pressed start
change x by (amount)
if (variable) equals one
change x by -(amount that you put above)
both ifs end
forever end

Hope this helps.


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

Offline

 

#3 2011-12-27 00:49:21

Freakish
Scratcher
Registered: 2011-10-25
Posts: 1000+

Re: Solid Walls

Sensing is a very hard thing to accomplish. A really good sensing I recommend is RHY3756547's Perfect Platformer Base


http://i.imgur.com/y3RBV.jpg

Offline

 

#4 2012-01-15 09:12:09

bobbythe3rd
New Scratcher
Registered: 2011-12-03
Posts: 1

Re: Solid Walls

:0

Offline

 

Board footer