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

#1 2009-03-19 17:53:11

jnetman1
Scratcher
Registered: 2009-03-17
Posts: 3

ScratchApplet Parameters

How do I prevent projects from starting automatically when presented online using ScratchApplet? I'd prefer that they wait until the flag is clicked.

Offline

 

#2 2009-03-19 19:44:37

golfer3
Scratcher
Registered: 2008-11-02
Posts: 1000+

Re: ScratchApplet Parameters

jnetman1 wrote:

How do I prevent projects from starting automatically when presented online using ScratchApplet? I'd prefer that they wait until the flag is clicked.

maybe a:

[blocks] <wait(   # here  )secs> [/blocks] but i'm not to sure what ur talking about?

Last edited by golfer3 (2009-03-19 19:55:08)

Offline

 

#3 2009-03-20 23:44:11

jnetman1
Scratcher
Registered: 2009-03-17
Posts: 3

Re: ScratchApplet Parameters

I mean when a page that uses ScratchApplet first loads, the applet starts the attached project automatically. For example, if I open the Bug on a Plate sample program in Scratch, the first thing I see is the instructions until I click on the flag. If I place it in a web page with ScratchApplet, it doesn't show the instructions, instead acting like I clicked the flag already. If I click Stop, then I see the instructions as expected. Same thing with the PianoMachine sample project. In the project, there is an explicit "when flag clicked" subroutine. However, in a web browser, it immediately starts bouncing the balls as if the flag was clicked. Same experience with our own projects. I want these to behave the same way in a web browser as they do in the Scratch application.

Offline

 

#4 2009-03-20 23:45:53

jnetman1
Scratcher
Registered: 2009-03-17
Posts: 3

Re: ScratchApplet Parameters

I'm hoping that there are some additional undocumented parameters I can use to prevent this and/or customize the behavior of the ScratchApplet.

Offline

 

#5 2009-03-21 06:38:51

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: ScratchApplet Parameters

I am afraid there are no additional parameters. Depending ion how you want to use it, you can just program a start button in your project?


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#6 2009-03-21 08:12:18

adityasm9
Scratcher
Registered: 2008-03-12
Posts: 100+

Re: ScratchApplet Parameters

jnetman1 wrote:

I mean when a page that uses ScratchApplet first loads, the applet starts the attached project automatically. For example, if I open the Bug on a Plate sample program in Scratch, the first thing I see is the instructions until I click on the flag. If I place it in a web page with ScratchApplet, it doesn't show the instructions, instead acting like I clicked the flag already. If I click Stop, then I see the instructions as expected. Same thing with the PianoMachine sample project. In the project, there is an explicit "when flag clicked" subroutine. However, in a web browser, it immediately starts bouncing the balls as if the flag was clicked. Same experience with our own projects. I want these to behave the same way in a web browser as they do in the Scratch application.

you can program every thing with a [blocks]
<when[ ]key pressed> instead of a <when green flag clicked>[/blocks]

Offline

 

Board footer