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

#1 2012-10-18 14:55:33

youvecatstobekitten
New Scratcher
Registered: 2012-10-05
Posts: 11

standing on blocks

im making a game and i want the person to be able to only stand only brown and if he isnt fall down.  how do i do that

Offline

 

#2 2012-10-18 15:20:57

subzerostig
Scratcher
Registered: 2010-09-08
Posts: 100+

Re: standing on blocks

if ( not <touching color [#000000]? >)
fall

Last edited by subzerostig (2012-10-18 15:24:41)


There are 10 types of people people in this world, those that understand binary and those that do not: My latest Project: Present catcher V2                          06/12/2012

Offline

 

#3 2012-10-18 15:24:47

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: standing on blocks

subzerostig wrote:

if < not <touching color [#964B00]? > >
fall
end

Fixed.

Last edited by ErnieParke (2012-10-18 15:26:59)


http://i46.tinypic.com/35ismmc.png

Offline

 

#4 2012-10-18 15:25:18

subzerostig
Scratcher
Registered: 2010-09-08
Posts: 100+

Re: standing on blocks

Thank you. I've spent the last ten minutes trying to get it too work!  smile


There are 10 types of people people in this world, those that understand binary and those that do not: My latest Project: Present catcher V2                          06/12/2012

Offline

 

#5 2012-10-19 15:13:53

youvecatstobekitten
New Scratcher
Registered: 2012-10-05
Posts: 11

Re: standing on blocks

now my simple script to end the game isn't working.  I have it set up
[scratchblocks]
when gf clicked
forever if <touching (color)>
   broadcast death
   end script
end

Offline

 

#6 2012-10-19 15:18:57

youvecatstobekitten
New Scratcher
Registered: 2012-10-05
Posts: 11

Re: standing on blocks

[scratchblocks]
when gf clicked
forever if <touching [color]>
   broadcast [death]
   end script
end

Offline

 

#7 2012-10-19 15:34:19

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: standing on blocks

youvecatstobekitten wrote:

when gf clicked
forever if <touching [color]?>
   broadcast [death v]
   stop all

I fixed and edited your script.


http://i46.tinypic.com/35ismmc.png

Offline

 

Board footer