Pages: 1
Topic closed
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
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
Offline
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.
Offline
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
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.
Offline
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.
Offline
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
Topic closed
Pages: 1