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

#1 2009-03-09 14:16:02

Pohta11
Scratcher
Registered: 2009-02-24
Posts: 2

scripts don't work on site

When I play my programs in Scratch itself, they work without a hitch.  But, when I load  them onto the Scratch site, they don't work.  In my first game, the game does not reset when I press the SPACE key, as I programmed it to.  In my second game, it runs for about 1 second, then stops and does not reset when I press the SPACE key, or even run properly when I click the green flag again.  I think it has something to do with Java, but I don't know what the problem is.

Thanks,

Pohta11

Offline

 

#2 2009-03-09 15:00:32

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: scripts don't work on site

Actually, I'm having a similar problem myself with one of my projects, and it also involves using the spacebar key to start a game. It could simply be a problem with Java, but perhaps it can also be a browser issue (my game seems to run fine online when using the Mozilla Firefox Browser, but fails to reset properly when using Flock on my laptop). I'm not sure why this is so  hmm

Last edited by cheddargirl (2009-03-09 15:11:34)


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

#3 2009-03-09 15:52:05

jasb
Scratcher
Registered: 2007-11-10
Posts: 100+

Re: scripts don't work on site

Did you use

<when[ space ]key pressed>

or

<when green flag clicked>
<forever if> space clicked
<end>

It may have to do the difference. Maybe Java doesn't work well with one of them. Try to change it and than check if it works.

Last edited by jasb (2009-03-09 15:54:35)

Offline

 

#4 2009-03-29 07:21:42

tomgalaxyzoo
Scratcher
Registered: 2009-03-28
Posts: 100+

Re: scripts don't work on site

Some other people have been reporting simlar things  wink  wink


<forever> Galaxy Zoo!
smile  smile  smile  smile  woof woof!  smile  sad  big_smile  yikes  wink  hmm  tongue  lol  mad  roll  cool

Offline

 

#5 2009-03-29 07:24:01

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Re: scripts don't work on site

the cause of the problem is because the java aplet and the offline version of scratch work diffrently. It seems the applet has a load of glitches. The best way, but wont always solve the problem, is to use some wait blocks for initializing. this is because althoug it works fine offline, online 2 many things happen at the same time and it confuses the applet.

Offline

 

Board footer