I'm trying to use the System Menu Checkmark option and trying to make it save, but the setValue() function doesn't like me. Here is my code for it to be a bit easier to look into.
function initialize()
if savefiles then ##just the save variable
pd.menu.item.crankbutton:setValue(savefiles.crankwasused) ##the troublemaker (i think)
else
pd.menu.item.crankbutton:setValue(true)
end
local playerImage = gfx.image.new("assets/player")
playerSprite = gfx.sprite.new(playerImage)
playerSprite:moveTo(200, 120)
playerSprite:add()
end
Thank you