Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

What specific issue did you run into while implementing auto-saving, I would love to help.

im not entirely sure why its not working. The saving function works when triggered directly by the player but using a timed function it doesnt...


heres what the code looks like for calling the function.

this code is in the game file and the save function is in the player.

fElapsed = event.frame    
fElapsed /= waitInterval     
fElapsedFloor = floor fElapsed     
if fElapsed==fElapsedFloor then         
    emit "save"     
end