This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials
Create point and click adventures without coding. The free version covers up to 25 scenes per project. For more scenes or to earn money with your game, you need a license.
See the Indie Bundle Try it for free-- * variables * --
local ps -- empty variable(s)
-- * function used to check if game should autosave (saves on new scene [playable]) * --
function autosaveSystem()
if game.CurrentScene:getName() ~= ps then
ps = game.CurrentScene:getName() -- update scene name
if not game.CurrentScene:getBool(VSceneIsMenu) and not game.CurrentScene:isEmpty() then
startAction("Actions[autosave_system]")
end
end
end
registerEventHandler("mainLoop", "autosaveSystem") -- creates a loop function which loops autosaveSystem() function
This thread is closed because nobody has replied for more than a year. Feel free to ask your question in a new thread.
New thread