Pages: 1
Topic closed
Hi
Is it possible to use javascript to access in-game variables contained within my scratch game when the game is embedded into the page as an applet?
to give you context, I am trying to achieve this..
1) game is embedded in web page
2) player completes game
3) Form on the page extracts the players score from the applet/game and puts into a field on the form
4) User enters their name on the form
5) User submits the form, sending their name and their score to the web server
Clearly point 3) is the tricky part. Is the Scratch applet/game a black box? what can I do to it/get from it using Javascript?
Michael
Offline
That's a wonderful idea Michael. Unfortunately at this time this is not possible but this shouldn't be too hard to achieve. I'll bring it up in the next Scratch Team meeting :-)
Offline
Topic closed
Pages: 1