Question about Attributes
Hey,
I have just a quick question. When I have an attribute set (normal) to let's say, 1000.
And in game, this attribute changes, and I set up correct loading and saving rules,
when I come back it will be set back again to 1000 or?
I just had the issue that I tested a shop, I set the shop coins to 2000. And each time I came back in the game
it was still at 2000, even if I bought something. I was going crazy, I couldn't find any wrong rule...And now it hit me..
Thanks for support,
Alex
I have just a quick question. When I have an attribute set (normal) to let's say, 1000.
And in game, this attribute changes, and I set up correct loading and saving rules,
when I come back it will be set back again to 1000 or?
I just had the issue that I tested a shop, I set the shop coins to 2000. And each time I came back in the game
it was still at 2000, even if I bought something. I was going crazy, I couldn't find any wrong rule...And now it hit me..
Thanks for support,
Alex
Comments
when level finished is true
change money to money + 200
save attribute game.money, key: money
In my game start scene (menu) I have a load attribute
Key: money, game.money attribute
Is it because I am using an index instead of an integer?
Alex
okey I replaced it and will check again. I am using an AdHoc, I know that the Viewer doesn't work
for this.
Alex
thank you