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

#1 2011-05-02 11:15:25

yostman
Scratcher
Registered: 2010-05-17
Posts: 2

i need help

i need people to comment help on how to make people lose or win when they touch somthing comment any of yostmans project. i need help now![blocks]

Offline

 

#2 2011-05-02 11:16:44

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: i need help

Code:

forever
  if <touching [lose sprite]>
    broadcast [lose]
  if <touching [win sprite]>
    broadcast [win]

Oh, and this belongs in All About Scratch.

Last edited by scimonster (2011-05-02 11:17:01)

Offline

 

#3 2011-05-02 11:18:31

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: i need help

scimonster wrote:

Code:

forever
  if <touching [lose sprite]>
    broadcast [lose]
  if <touching [win sprite]>
    broadcast [win]

Oh, and this belongs in All About Scratch.

+1


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#4 2011-05-02 11:22:23

kimmy123
Scratcher
Registered: 2008-05-20
Posts: 1000+

Re: i need help

markyparky56 wrote:

scimonster wrote:

Code:

forever
  if <touching [lose sprite]>
    broadcast [lose]
  if <touching [win sprite]>
    broadcast [win]

Oh, and this belongs in All About Scratch.

+1

What was it in?


http://i.imgur.com/Mg3TPIE.pnghttp://i.imgur.com/rgyzXV5.pnghttp://i.imgur.com/685FKVd.pnghttp://24.media.tumblr.com/8678e33865664f328e1654109679cb92/tumblr_mm1qu3jGD71s8caito3_r1_250.gif

Offline

 

#5 2011-05-02 11:29:04

yostman
Scratcher
Registered: 2010-05-17
Posts: 2

Re: i need help

need it now

Offline

 

#6 2011-05-02 12:22:42

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

Re: i need help

There are a number of ways to do what you are asking...Broadcast messages, as scimonster demonstrated, are one way to go.  Another approach is just to change a costume or have a sprite Say something when another sprite touches it.  Something like this

When Green Flag Clicked
Wait Until <touching player sprite>
Say "You Lose" for 2 seconds
Stop all scripts


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

Offline

 

#7 2011-05-02 13:20:10

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: i need help

kimmy123 wrote:

markyparky56 wrote:

scimonster wrote:

Code:

forever
  if <touching [lose sprite]>
    broadcast [lose]
  if <touching [win sprite]>
    broadcast [win]

Oh, and this belongs in All About Scratch.

+1

What was it in?

Advanced topics.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#8 2011-05-02 18:24:24

YoScratchMeh27
Scratcher
Registered: 2011-04-02
Posts: 2

Re: i need help

<when green flag clicked>
<forever>
<if><touching[ (What Ever You Touch To Lose) ]
<broadcast[ Lose Game ]
<if><touching[ (What Ever You Touch To Win) ]
<broadcast[ Win Game ]





There You Go! Good Luck On The Project!  smile   cool  :p

Offline

 

Board footer