Data Storage - Can't figure it out

mikomimikomi dijo

hace mucho tiempo | Publicación #1
Hi all

Apologies for the noobish first questions but I am struggling with implementing the data storage from the API. I have added the example code into my game and everything appears to integrate fine but when I compile the game it tells me an error has occured. I found some tutorials for other parts of the API and this appears ti be normal but even when the game is put online, nothing appears to happen, even with the code inserted. Presumably, users would need to register an account to save the data, etc, etc? Sorry about this, am just lost at the moment!

Any help would be gratefully recieved

ChrisChris dijo

hace mucho tiempo | Publicación #2
Can you give a bit more info on this? What error do you get, what happens when you put it online etc etc?
Publicación #3 eliminada

mikomimikomi dijo

hace mucho tiempo | Publicación #4 | en respuesta a #2
OK, I think I am starting to understand this but I am still a bit lost. Before, I didn't really understand how the API actually worked but I followed one of the achievement tutorials and understand now - even though it may not look like anything is happeneing, in the case of an achievement, something is added to your nonoba account. Ok, so I have successfully implemented both a log in screen and an achievement into my game but I am still a little stuck on datastorage. I have inputed the code into their own frames (correctly, with the import command, etc) and to test the data storage I attempted to display the data I had stored as "somedata" - in this case I hoped to store a variable. Looking at the code you posted, Chris, for the score submit and the datastorage I placed this into my program:

"NonobaAPI.SetUserData("somedata", 10, function(response:String){
"

Unfortunately, this generates an error - is it not possible to store (numeric) variables? I also tried just using the example code you gave and attempted to display "somedata" in a text field but again, nothing appeared.

Again, many thanks for the help and advice - if nothing else I've figured out most of the other funtions...I think!

ChrisChris dijo

hace mucho tiempo | Publicación #5 | en respuesta a #4
What error do you got?

Contestar al tema

Regístrate ahora para responder a éste tema

Juegamigo

juegamigo.com es un sitio de juegos independiente donde puedes jugar solo o en conjunto en los juegos multijugador de una manera gratuita.

Herramientas para Desarrolladores

Si eres un desarrollador de juegos flash, tenemos unas increíbles herramientas que te ayudarán a hacer aún mejores tus juegos.

Juegos Padrísimos

¿Por qué no jugar algunos de los mejores juegos flash en línea que tenemos?, ¡es completamente gratis!

Copyright ©2007-2012 Juegamigo™ - All rights reserved.46.8001ms on SERVER34096