Pages: 1
Topic closed
Hi,
I'd like understand if is there a way to export global variables defined inside Scratch from the scratch java applet.
I'm working to a game project and I need to export the score from the game inside the java applet but I don't know what I have to do.
Thank you
Fabrizio
Offline
I don't think you could, sorry. You'd have to copy it by hand by showing the variable.
Offline
I don't know of a way to do it from the Java player, sorry. It can be done from the Scratch app using some of the remote sensor options, but not from the Java player.
Offline
lvcido wrote:
Hi,
I'd like understand if is there a way to export global variables defined inside Scratch from the scratch java applet.
I'm working to a game project and I need to export the score from the game inside the java applet but I don't know what I have to do.
Thank you
Fabrizio
Kind of out of topic but what this user asked if answered can be the main link to creating an "High Score" Section to a game.Maybe that will be possible one day!
Offline
DawnLight wrote:
Kind of out of topic but what this user asked if answered can be the main link to creating an "High Score" Section to a game.Maybe that will be possible one day!
In Scratch 1.4 there will be network options (at least, according to beta testers)
Offline
coolstuff wrote:
DawnLight wrote:
Kind of out of topic but what this user asked if answered can be the main link to creating an "High Score" Section to a game.Maybe that will be possible one day!
In Scratch 1.4 there will be network options (at least, according to beta testers)
It is called the "Mesh" feature but I think it is only local.Also you have to manually aquire I.P addresses of others to make it online.
Offline
If the source code were available for the ScratchApplet, then we might be able to figure out how to get the Scratch variable values using Javascript as described here: http://www.rgagnon.com/javadetails/java-0170.html.
- michael
Offline
Topic closed
Pages: 1