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

#1 2013-03-09 17:59:30

Scratchykid
New Scratcher
Registered: 2013-03-09
Posts: 2

first time scratch programmer is stuck

Help me please!
I am doing the sciencebuddies.com project called "want to make a video game? here's how!" that uses scratch programming.  I can make the dog chase the cat and I can make the cat move around.  When the dog catches the cat he stops and hides, but the cat doesn't.  If the cat touches the dog first, it stops and hides but the dog doesn't.  How do I make them both hide and stop at the same time?
I appreciate any help that anyone has!
Thanks, scratchykid

Offline

 

#2 2013-03-09 18:32:19

Blayer98
Scratcher
Registered: 2012-03-22
Posts: 100+

Re: first time scratch programmer is stuck

hello! it's great you are using a tutorial to get you started! did the tutorial give any advice on how to fix the problem you are having? did you do the scrips correctly?

Anyway, can you upload the project so i can take a closer look?


http://i50.tinypic.com/16lwmlj.png
The first Collab to have it's very own Cloud Variables! Coming Soon!

Offline

 

#3 2013-03-09 22:15:48

Sky01
Scratcher
Registered: 2010-10-23
Posts: 10

Re: first time scratch programmer is stuck

Scratchykid wrote:

Help me please!
I am doing the sciencebuddies.com project called "want to make a video game? here's how!" that uses scratch programming.  I can make the dog chase the cat and I can make the cat move around.  When the dog catches the cat he stops and hides, but the cat doesn't.  If the cat touches the dog first, it stops and hides but the dog doesn't.  How do I make them both hide and stop at the same time?
I appreciate any help that anyone has!
Thanks, scratchykid

Easy. When one touches the other, use the broadcasts.

In each one, have:

when gf clicked
wait until <touching cat>
broadcast [game over]
except that the "touching cat"  block is really blue.

Next, have in BOTH sprites:
when I receive [game over]
hide
stop all


I had a really cool animation planned for this signature but couldn't figure out how to post it  sad
http://www.my_animation_WAS_here

Offline

 

#4 2013-03-10 14:16:38

Scratchykid
New Scratcher
Registered: 2013-03-09
Posts: 2

Re: first time scratch programmer is stuck

Hey Sky01!
Thank you so much for helping me!  It works!!!!  I can finally finish my science project without sitting in a crammed chair and staring at a screen for five hours trying to figure out what to do!
your appreciative friend,
Scratchykid

P.S.  Sorry i didn't get to see your cool animation.

Offline

 

Board footer