This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.
  • Index
  •  » Advanced Topics
  •  » Is there possibility to export global variables from scratch applet?

#1 2009-05-15 11:14:33

lvcido
Scratcher
Registered: 2009-05-15
Posts: 2

Is there possibility to export global variables from scratch applet?

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

 

#2 2009-05-15 22:01:05

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: Is there possibility to export global variables from scratch applet?

I don't think you could, sorry. You'd have to copy it by hand by showing the variable.


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

#3 2009-05-16 06:26:41

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Is there possibility to export global variables from scratch applet?

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.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#4 2009-05-19 19:22:24

lvcido
Scratcher
Registered: 2009-05-15
Posts: 2

Re: Is there possibility to export global variables from scratch applet?

Thanks a lot for you response!

I have just one last question. where can I find the java applet source code? Is it open source?

Thanks again

Fabrizio

Offline

 

#5 2009-05-19 19:35:35

DawnLight
Scratcher
Registered: 2009-04-25
Posts: 500+

Re: Is there possibility to export global variables from scratch applet?

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

 

#6 2009-05-19 19:39:31

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Is there possibility to export global variables from scratch applet?

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

 

#7 2009-05-19 19:51:13

DawnLight
Scratcher
Registered: 2009-04-25
Posts: 500+

Re: Is there possibility to export global variables from scratch applet?

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

 

#8 2009-08-18 00:16:40

mseankelly
Scratcher
Registered: 2009-03-12
Posts: 1

Re: Is there possibility to export global variables from scratch applet?

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

 
  • Index
  •  » Advanced Topics
  •  » Is there possibility to export global variables from scratch applet?

Board footer