Discuss Scratch

Krammy
Scratcher
28 posts

How do I implement this?

This.

I need it to move it's fin as it goes through the water, but I'm not sure how to fit it in with the existing script, or how to fit it into a new script. It would be simple if every clone could have it's own variable, but when I tried to make it work previously the sharks started dancing as another one came on screen.

Here's my game, if you're still confused.
Photoguy77
Scratcher
100+ posts

How do I implement this?

Good question! Try putting a when I receive right on the upper script w/ no hat block. Do this w/ when I receive left for the lower one.

-Photoguy77

“Without enjoying, one will never truly learn” ~Flome

“Finding happiness starts in you” ~ProdigyZeta7

Krammy
Scratcher
28 posts

How do I implement this?

Photoguy77 wrote:

Good question! Try putting a when I receive right on the upper script w/ no hat block. Do this w/ when I receive left for the lower one.

That's exactly what I had previously. But the sharks freak out and start swapping directions when another clone from the other side comes in.
Krammy
Scratcher
28 posts

How do I implement this?

I guess I can just make them two different sprites. Thanks for the help.
Photoguy77
Scratcher
100+ posts

How do I implement this?

You're welcome

Last edited by Photoguy77 (Sept. 1, 2013 16:32:44)


-Photoguy77

“Without enjoying, one will never truly learn” ~Flome

“Finding happiness starts in you” ~ProdigyZeta7

JAVAProgramming
Scratcher
100+ posts

How do I implement this?

If you want it for a new script:

Set the pick random number to a variable, or broadcast something.

Then:
when I start as a clone:
forever:
When broadcast (right shark) received:
(Add moving script)

My Newest Project, Come Check It Out
Dots, On Scratch
Want to change the way we count? The Dozenal System.

“The story so far:
In the beginning the Universe was created.
This has made a lot of people very angry and been widely regarded as a bad move.”
― Douglas Adams, The Restaurant at the End of the Universe

Powered by DjangoBB