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

#1 2013-03-26 14:46:36

Fiddlesticks414
New Scratcher
Registered: 2013-03-26
Posts: 4

My Project Needs Help!

Can you make it so when a sprite touches another sprite the other sprite will say something? Thanks for letting me know if you reply  smile

Offline

 

#2 2013-03-26 15:39:44

Fiddlesticks414
New Scratcher
Registered: 2013-03-26
Posts: 4

Re: My Project Needs Help!

plz help me sorry i'm just in a hurry to finish my project. yikes

Offline

 

#3 2013-03-26 15:51:44

LeDerpy123
Scratcher
Registered: 2013-01-26
Posts: 100+

Re: My Project Needs Help!

if <touching sprite X>
say <whatever>


http://www.winpenpack.com/en/e107_files/downloadthumbs/logo_mixxx.png

Offline

 

#4 2013-03-27 13:38:21

xlk
Scratcher
Registered: 2013-03-18
Posts: 57

Re: My Project Needs Help!

Exactly that, only on the other sprite, the one that must say something.
Alternatively, when sprite A touches sprite B, make A broadcast "talk"  (example), and sprite B has a script that gets executed on "talk".

when gf clicked
forever
 if <touching [b]>
  Broadcast [talk]
 end
end 
When [talk]
say [blah, blah, blah.     -_-'']

Offline

 

#5 2013-03-27 19:01:41

Photoguy77
New Scratcher
Registered: 2013-02-16
Posts: 9

Re: My Project Needs Help!

[scratchblocks]
When gf clicked
if <touching [Joe v]
say [Hi JOE]
[/scrachblocks]

I hope this will help you finish.

    Sincerely,
    Photoguy77

Offline

 

#6 2013-03-27 19:22:52

7734f
Scratcher
Registered: 2010-12-23
Posts: 500+

Re: My Project Needs Help!

when gf clicked
forever
 if <touching [Sprite 2 v]?>
  broadcast [say something v]//broadcasts to another sprite 
 end

When I receive [say something v]//receives message, and performs syntax
say [something]

Last edited by 7734f (2013-03-27 19:23:31)


http://internetometer.com/image/38992.png   http://i37.tinypic.com/2qixx6c.png

Offline

 

#7 2013-03-27 20:16:53

nomcat6
Scratcher
Registered: 2013-03-27
Posts: 2

Re: My Project Needs Help!

how do i make my game screen change colors?

Offline

 

#8 2013-03-27 20:34:18

7734f
Scratcher
Registered: 2010-12-23
Posts: 500+

Re: My Project Needs Help!

nomcat6 wrote:

how do i make my game screen change colors?

For the stage scripts:

when gf clicked
forever//or for however long you want using the 'repeat block'
 change [color v] effect by [10]//or how much you want it to change by
 wait [.1] secs//or wait however long you want
end
Hope that helped!
 
                        ~7734f


http://internetometer.com/image/38992.png   http://i37.tinypic.com/2qixx6c.png

Offline

 

#9 2013-03-29 11:37:32

Fiddlesticks414
New Scratcher
Registered: 2013-03-26
Posts: 4

Re: My Project Needs Help!

ty guys =O

Offline

 

#10 2013-03-29 12:02:49

Fiddlesticks414
New Scratcher
Registered: 2013-03-26
Posts: 4

Re: My Project Needs Help!

What about making say sprite 2 disappear when sprite 1 touched it tell me what you think?  smile

Offline

 

#11 2013-03-29 12:13:37

7734f
Scratcher
Registered: 2010-12-23
Posts: 500+

Re: My Project Needs Help!

Fiddlesticks414 wrote:

What about making say sprite 2 disappear when sprite 1 touched it tell me what you think?  smile

For sprite 1's script:

when gf clicked
forever
 if <touching [sprite 2 v]?>
  say [sprite two disappear] for (2) secs
  broadcast [disappear v]
 end
For sprite 2's scripts:

When I receive [disappear v]
hide
There you go!

            ~7734f


http://internetometer.com/image/38992.png   http://i37.tinypic.com/2qixx6c.png

Offline

 

Board footer