So far my code goes something like this:
– First I have the property.lua in my project
– Then I do local prop = require(“property”)
local propertyBag = prop:init()
– I then set up my highscore variable like highscore = 0
– Then I do propertyBag:setProperty(“highscore”,highscore)
propertyBag:SaveToFile()
–Then when its time I do if score > highscore then
highscore = score
propertyBag:setProperty(“highscore”,highscore)
propertyBag:GetFromDisk()
propertyBag:SaveToFile()
end
(this isnt exact code)
I want to simply have my highscore value saved when you quit out and then get it back when you return.
Thanks, Jason [import]uid: 8335 topic_id: 12780 reply_id: 312780[/import]
