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
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.
Try using this script segment in the cat:
wait until <touching [mouse v]?> play sound [meow v] until done stop all
Offline
When gf clicked Wait until <touching [mouse]> Play sound [meow] Say [whatever you want to] Stop allThis script would go in the cat sprite. Hope this helped!!!
Last edited by turkey3 (2012-03-12 17:23:11)
Offline
johnrulz wrote:
Hope this helps
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