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

#1 2008-03-05 20:47:16

rico
Scratcher
Registered: 2007-05-22
Posts: 47

Why do my Scratches start running before the Green Flag is clicked?

I am about to start an after school club for elementary school students (grades 3-5), so I created samples from each of the Scratch Cards (which are wonderful). Any that start with the "When (whatever) key pressed" are fine, but any that start with the "When (Green Flag) clicked" start running immediately before even clicking on the Green Flag. They work fine in Scratch (without starting prematurely), but when they are posted to a server, they start prematurely. I have posted one here on Scratch. Does anyone have any ideas about why this happens and how I can make it stop?

http://scratch.mit.edu/projects/rico/113757

Offline

 

#2 2008-03-05 20:50:10

47fg74
Scratcher
Registered: 2007-10-30
Posts: 100+

Re: Why do my Scratches start running before the Green Flag is clicked?

yeah it happened to some of my projects to, but it really doesn't matter cause u can just press the flag again to restart it


What emo means....
E is for emontional ruins everbodies day
M is for misrable people
O is for on the dark side... cause we have some fresh cookies

Offline

 

#3 2008-03-05 20:52:15

heybrian1
Scratcher
Registered: 2008-03-02
Posts: 100+

Re: Why do my Scratches start running before the Green Flag is clicked?

It always happens, but if your presenting it you can (before you show it to the kids) click the green flag and immediately click the stop sign. Then you just wait until their all settled and click the flag.


I am Heybrian. Yes, the "Ask me anything, for i am a pro scratcher" Thread IS mine.

Offline

 

#4 2008-03-05 20:58:08

rico
Scratcher
Registered: 2007-05-22
Posts: 47

Re: Why do my Scratches start running before the Green Flag is clicked?

Thank you very much Heybrian and 47fg74. If it bothers me too much, maybe I'll switch from the "Green Flag" to a "Press space bar" command to start them all and see if that works. If any one has any other ideas, I'd be happy to hear other ways of solving this.

Offline

 

#5 2008-03-05 22:29:49

FPSFelix
Scratcher
Registered: 2008-02-06
Posts: 100+

Re: Why do my Scratches start running before the Green Flag is clicked?

well, you could make it so that when the flag is pressed, then it stops all scripts, and when you want to present, you take that off.


this is what i brought you, this you can keep.
this is what i brought, you may forget me.
i promise to depart, just promise one thing...
kiss my eyes and lay me to sleep.

Offline

 

#6 2008-03-06 01:06:27

Rukqo
Scratcher
Registered: 2008-01-17
Posts: 100+

Re: Why do my Scratches start running before the Green Flag is clicked?

Wouldn't that be........useless extra work?!

Offline

 

#7 2008-03-06 03:59:42

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: Why do my Scratches start running before the Green Flag is clicked?

Hi rico,

there are two situations in which a Scratch project starts immediately, i.e. without having to press the green flag:

   1. In the Java-player online
   2. If you start Scratch in presentation mode (using a command-line parameter)

I'm also confused sometimes, when I expect my Scratch-projects to start running whenever I switch to presentation mode, which is not the case.

I think your idea to "initialize" your Scratch projects when the green flag is pressed, and then let them wait for some user input to start action is the best way to resolve this issue.


Jens Mönig

Offline

 

#8 2008-03-09 01:02:15

rico
Scratcher
Registered: 2007-05-22
Posts: 47

Re: Why do my Scratches start running before the Green Flag is clicked?

Ich danke Ihnen sehr, Jens. The information you provided answers my question of "why" this happens. It's good to know. For each of my Scratch Card samples that lend themselves nicely to accepting input from the user, I have included an instruction like "Click the xxxx and observe." For example on the "Follow the Mouse" sample, I ask the user to click the cat. Others that lend themselves to running automatically (e.g., "Glide"), I have kept the green flag command in effect. It seems to be a nice solution. Again, thank you all for your help and suggestions.

-Rico

Offline

 

Board footer