Data Storage - Can't figure it out

mikomimikomi sagði

fyrir löngu síðan | Færsla #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 sagði

fyrir löngu síðan | Færsla #2
Can you give a bit more info on this? What error do you get, what happens when you put it online etc etc?
Færslu #3 eytt

mikomimikomi sagði

fyrir löngu síðan | Færsla #4 | sem svar við #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 sagði

fyrir löngu síðan | Færsla #5 | sem svar við #4
What error do you got?

Svara þræði

Skráðu þig núna til að svara þráðum

Spilatorg

Velkomin(n) á spilatorg.is. Spilatorg er sjálfstæð leikjasíða þar sem þú getur spilað bæði einstaklings- og fjölspilunarleiki frítt.

Tól hönnuða

Ef þú ert flash leikja hönnuður, þá erum við með nokkur frábær tól til að hjálpa þér að búa til jafnvel enn betri leiki.

Frábærir leikir

Af hverju prófarðu ekki nokkra af bestu flash netleikjunum sem við erum með, algjörlega frítt?

Copyright ©2007-2012 Spilatorg™ - All rights reserved.34.002ms on SERVER34097