Hi, i make login system in my game using this tutorial:
Its real way to add global variables from game to database in parse data?
in database i see username, email etc but i want see ammount of money, score, level of weapon ets and i want have posibility to edit this variables to see modified variables in game.
so game should send info to parse and parse should send to game
its possible to make?
It is definitely possible.
I have never used Parse, so I don't know exactly how it works. But there are plenty of tutorials on Google:
http://www.raywenderlich.com/98831/pars ... b-backends
It is possible to have another field in user table, you might try rex_parse_itemtable plugin.
But parse could not send data to user if user did not do requesting.
You can refer to my 2nd Parse tutorial:
https://www.scirra.com/tutorials/1465/l ... rse-plugin
You'll find how to add score value for different player.
jomo thanks for reply, rexrainbow if score can send to database and return to game its not possible to do this same with other variables?
The score read back after user send a request to server. i.e. if user does not send this request, nothing will be received.
Develop games in your browser. Powerful, performant & highly capable.
rexrainbow but user send request from game right?
I mean that user does not know the newest value or the field had been changed until user send a request.
On the other hand, if user want to update a field to the newest value, it needs send request every 1 min ( or 30 seconds ) for example, then it will cost a lot of requests = money.
rexrainbow hi, i use your plugin but this plugin and other examples downloaded from your site add add new data to account look at this image
i need something what add new values under User data
is something i dont understand or i miss something?
You might try to set the "Class name" to "User" to access this User (account) table, in properties table of rex_parse_itemtable plugin. After authenticated, you could read user ID by "Expression:UserID", it is equal to objectId in this table at the first field of each row.
Now you could
1. set the cash by "Action:Set value"
2. set the gunlevel by "Action:Set value"
3. set userID by "Action:Set itemID" ( userID = itemID = objectId )
4. call "Action:Save" to save this row into parse server, "Condition:On save complete" will be triggered while saving successful.