Hi to all! First post on the forum so please forgive any "newbieness".
Downloaded and installed Scratch this weekend (general impresion excelent) and managed to knock together a Tron light-cycle game with my daughter. Everything seems to be running fine (although we definitely need more time to see if there are better ways of doing certain things).
To the point of the post. When we try to play the game online the colour colision detection system isn't working (apart from when you crash directly into the other cycle). We've also noted that it runs slightly slower.
Any ideas?
Link: http://scratch.mit.edu/projects/madridscratcher/2901945
Thanks in advance.
Offline
There can often be problem involving the player you use, and sometimes, you have to download it for it to work.
For example, my rectangle generator works in the Java player, and when downloaded, but not in the flash player.
If you are having problems online, you can find a solution, or, you can just place in your Project Notes somewhere, or within your project, that the player should download your project, for them to play the working version.
Offline
Hi, and welcome
As you said, this works perfectly offline, so I'm guessing the problems are to do with the online version being 'slow'.
I separated the 'checking' script from the rest, in case it's not getting enough 'time' to check, or is checking too slow.
I also added the 'wait til not touching...' so that you'd still only lose 1 point per time you cross a line instead.
I haven't checked this online, but maybe this might work?
Remove the equivalent part from the rest of the script, and add this:
when I receive [play game v] show forever if <(running) = [true]> if <<color [#00FFFF] is touching [#FF0000]?> or <<color [#00FFFF] is touching [#CE0000]?> or <color [#00FFFF] is touching [#00CECE]?>>> change [blue energy v] by (-1) play sound [AlienCreak1 v] if <(blue energy) < [1]> set [running v] to [false] broadcast [blue dead v] wait (0.5) secs hide end wait until <not <<color [#00FFFF] is touching [#FF0000]?> or <<color [#00FFFF] is touching [#CE0000]?> or <color [#00FFFF] is touching [#00CECE]?>>>> end endI know I haven't explained this very well, nor do I make much, if any, sense, so I apologise! I hope this might help
Offline