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

#1 2011-10-17 19:13:26

Bob_Saget
New Scratcher
Registered: 2011-10-02
Posts: 4

Help with science project.

Hello, my science project is due soon and I really don't understand this. If someone could help, that'd be great.


When the game ends, both the cat and the dog should stop moving. This means you need to tell the program, by editing an existing script, that all the scripts that are currently running need to end. You could place these instructions in either the cat or in the dog's scripts area, but for this science fair project, you'll put it in the cat's script area.

It wants me to use the following blocks as well:

<when green flag clicked>
<if> and <else>

<broadcast[

<stop all>

<when I receive[

and <show><hide>

can someone please help a newbie out? Thanks

Offline

 

#2 2011-10-17 19:18:49

Bob_Saget
New Scratcher
Registered: 2011-10-02
Posts: 4

Re: Help with science project.

Adding on, it basically wants me to end all movement between the two sprites when they touch.

It also wants to show a "Game Over" text as well.

Offline

 

#3 2011-10-17 19:20:49

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: Help with science project.

When it’s over have a sprite, or the background broadcast something along the lines of “finish” or “end”.

To get the cat and the dog to stop moving, you would use.

______________________
[When I receive [finish]]

[hide]
[wait (0.1) secs]
[stop all]


EDIT: The "[wait (0.1) secs]” block is so that it doesn’t stop everything before the “game over” sign can show up.

Last edited by henley (2011-10-17 19:28:46)


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#4 2011-10-17 19:25:31

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: Help with science project.

Bob_Saget wrote:

Adding on, it basically wants me to end all movement between the two sprites when they touch.

It also wants to show a "Game Over" text as well.

Have a big sprite (filling up the entire screen) that has red big text saying “game over”

[When I receive [finish]]
[show]
[go to front]


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#5 2011-10-17 21:07:25

Sorcerer_
New Scratcher
Registered: 2011-10-10
Posts: 15

Re: Help with science project.

It's cool that you're doing scratch for science!

Offline

 

#6 2011-10-17 21:21:01

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: Help with science project.

Sorcerer_ wrote:

It's cool that you're doing scratch for science!

I've used Scratch to animate book reports before!  big_smile


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

Board footer