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

#1 2007-06-14 14:41:40

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

Game not working in JAVA!

Hi all,

I've been working on a game called chain reaction which works great in the dedicated scratch program but once uploaded into java the red atom does'nt change costume or colour! Can anyone point out why please ?

Offline

 

#2 2007-06-15 00:42:50

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: Game not working in JAVA!

Maybe try broadcast-and-wait for the costume change.

Also, I don't think that waits shorter than about 0.02 seconds do anything, so you might want to lengthen the ones you added.

Offline

 

#3 2007-06-15 12:14:27

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

Re: Game not working in JAVA!

Thanks Kevin tried what you suggested but it still did'nt work - fixed now though instead of using the - switch to costume (whatever) I used the - next costume command and it worked most odd!

Offline

 

#4 2007-06-16 12:01:17

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: Game not working in JAVA!

That is strange!  Sounds like either you have a race condition that is sensitive to small differences in timing, or there is a bug in the scratch.jar file that you have tickled.

Offline

 

Board footer