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

#1 2012-03-12 13:45:01

horvati2
New Scratcher
Registered: 2012-03-09
Posts: 1

Help!

I am new to scratch and i am trying to make a game. The game i am making involves a cat chasing a mouse, i got the cat to chase the mouse but when the cat reaches the mouse i want the cat to meow, a dialogue box to appear, and the game to stop. I thought i programmed it correctly, but when i play the game, this last part does not work. Can someone please give me an example of how to do this last step, or provide me with instructions?

Offline

 

#2 2012-03-12 13:50:50

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

Re: Help!

I'm not sure how your project is set up, but I'll try. It would be helpful of you to upload what you have so we can help you though.  wink
Try using this script segment in the cat:

wait until
touching
mouse
?
play sound
meow
until done
stop all

Offline

 

#3 2012-03-12 14:01:53

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: Help!

i think that will work

Offtopic scimonster i did the sanity test and take a look at my sig for the result


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#4 2012-03-12 17:22:45

turkey3
Scratcher
Registered: 2011-12-04
Posts: 500+

Re: Help!

When clicked
Wait until
touching
mouse
Play sound
meow
Say
whatever you want to
Stop all

This script would go in the cat sprite. Hope this helped!!!

Last edited by turkey3 (2012-03-12 17:23:11)

Offline

 

#5 2012-03-12 18:03:21

johnrulz
Scratcher
Registered: 2011-04-15
Posts: 44

Re: Help!

Hope this helps  smile

forever
if
sprite 1
touching
mouse-pointer
say
......
play sound
meow
stop script

Last edited by johnrulz (2012-03-12 18:04:03)

Offline

 

#6 2012-03-12 19:20:17

turkey3
Scratcher
Registered: 2011-12-04
Posts: 500+

Re: Help!

johnrulz wrote:

Hope this helps  smile

forever
if
sprite 1
touching
mouse-pointer
say
......
play sound
meow
stop script

Don't do this script because see the block that said forever if sprite 1 touching mouse pointer
Fislst of all, there is no script hat you can make if this sprite touching that. Instead you just put the script in for the cat do you don't need the if sprite 1. Also I hink you meant mouse as in animal

Offline

 

Board footer