That's a script intended for level creators to add to their levels. Judging by the post, it is built in so you won't need to download anything. Add this to your level/world's luna.lua file:
Code: Select all
local savestate = require("savestate")
savestateTable = {};
function onKeyboardPress(keycode)
if keycode == 0x43 then --C
savestateTable[#savestateTable + 1] = savestate.save();
playSFX(58);
elseif keycode == 0x44 and #savestateTable > 0 then --D
savestate.load(savestateTable[#savestateTable]); --load most recent
end
end
This is pulled directly from one of the links of that post. It also only works with SMBX2. If there isn't a luna.lua, create one.