Hi !
I'm new to Player.IO and want to develop my first game. I just have some problem though
For my idea I would need to know the number of objects stored in certain Table, cause I want to assign each element a unique (but known) Key, so... using an index would be great, something like Auto Increment in SQL.... is this possible ??
One workaround I was thinking was to make an object in the table with an array holding all of the Keys. But for this... I would need to know the randomly generated Key of the object i've just created... so I can add it somehow to the Array.
EDIT: I think I got it. I can use the callback of the createObject() function to get the key of it object! nice...
Now... how would I load the Keys Array... add the new Key, and then overwrite the one in the DB with the updated one ?
Could anyone help me pleease ?
Ok... Thanks in advance for your help !!