I haven't tested this, but I think there's a simple alternative to the complicated scripts to detect the java player.
Make a list called 'detect' and put nothing in it. Then, make a variable called 'java?' and another one called 'test'.
Next, make the following script:
-When flag clicked- [Set (java?) to (true')] [Set (test) to (item ('1') of (detect))] [Set (java?) to ('false')]
Offline
I'm not sure that that would work, because there isn't any difference in the actual response to the programming besides less lag... but in online/offline, the divide by zero one works because scratch program works a tiny bit differently than the website does.
Offline
Um, there's nothing about this script that should work....?
Offline
CheeseMunchy wrote:
Um, there's nothing about this script that should work....?
The java player stops the script when it tries to delete items from a list that doesn't exist, or I guess maybe not.
Oh... This scripy doesn't delete. Oops!
Last edited by zippynk (2012-01-27 18:47:18)
Offline
I'll give a better one.
when gf clicked set [variable v] to [Java] obsolete! set [variable v] to [Scratch] wait <[sqrt v] of (-1)> secs set [variable v] to [Flash]
Last edited by rdococ (2012-01-30 08:00:39)
Offline
Yes, it does work. I used the error in my project. That still works.
Offline