Discord
Login
Community
DARK THEME

How do I make a button that saves and loads the game

im trying to make a incremental as a beginner coder but I'm having trouble with the saving mechanic

The storage object allows for the permanent storage of your application data. You can use it to store user progress, highscores or other status information about your game or project.

storage.set( name , value )

Stores your value permanently, referenced by the string name. The value can be any number, string, list or structured object.

storage.get( name )

Returns the value permanently recorded under reference string name. Returns 0 when no such record exists.

thanks but the main problem I'm experiencing is the buttons simply wont show up even tho I am using DrawUI = function() thanks anyway because I did not know about the storage thing

DrawUI? its just draw = function() end

oh lol I'll go test that

just in case here's all them

init = function()

end

update=function()

end

draw = function()

end

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community