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
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
Last edited by cheddargirl (2009-03-09 15:11:34)
Offline
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
Some other people have been reporting simlar things
Offline
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