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

#1 2007-05-28 01:33:35

PatternsOfChaos
Scratcher
Registered: 2007-05-25
Posts: 13

Program not working when uploaded

Just wondering if anyone else has had this problem:

I just uploaded a program (Brick Wall 1.0) that worked fine on my computer, but it doesn't work online. Specifically, it starts & responds when you press the space bar - but the ball doesn't start moving and you can't control the paddle.

If it makes a difference, I also had a similar problem with Jet Pack Girl yesterday- the arrow keys weren't working.

Anyone know what's happening?

thx

Offline

 

#2 2007-05-28 06:39:06

uncleclives
Scratcher
Registered: 2007-05-19
Posts: 21

Re: Program not working when uploaded

Yep it's missing code - put in if you press space broadcast initialze in your first script.

Offline

 

#3 2007-05-28 17:42:19

PatternsOfChaos
Scratcher
Registered: 2007-05-25
Posts: 13

Re: Program not working when uploaded

That code exists on my local copy, but apparantly didn't get uploaded. How can I insure that all the code is correctly uploaded, then?

Offline

 

#4 2007-05-28 17:48:52

PatternsOfChaos
Scratcher
Registered: 2007-05-25
Posts: 13

Re: Program not working when uploaded

This is odd: I just downloaded the project to a different computer, and everything is there - it works just fine.

There should be 3 scripts for the Stage. One is when the flag is clicked, broadcast initialize. The second is for when the space bar is pressed, and doesn't initialize. Should that somehow be different for uploads?

Offline

 

#5 2007-05-28 23:57:38

natalie
Scratch Team
Registered: 2007-03-07
Posts: 100+

Re: Program not working when uploaded

I posted this in the other forum, too, but just to make sure you see this, I'll repeat below.

Okay, after much experimenting I found a way to get it to work...

What I did was in the Stage scripts to change "broadcast MoveBall"
to this block:
"broadcast MoveBall and wait"

I'm not sure why yet, but that worked for me. Could you please try that and let me know if it also works for you?

I really like the interaction and sound effects in your game!

Offline

 

#6 2007-05-29 11:12:51

natalie
Scratch Team
Registered: 2007-03-07
Posts: 100+

Re: Program not working when uploaded

See http://scratch.mit.edu/forums/viewtopic.php?pid=1883#p1883 for continuing discussion...

Offline

 

Board footer