Postby LooKiCH » Wed Jun 01, 2022 4:42 pm
Are you tired of waiting for the world map to load after the file, then the level to load? I wrote a script that allows you to quickly restart the level by simply pressing the F8 key
With reset powerups

Without reset powerups

Code: Select all
local quickrestart = require("quickrestart")
copy this code and paste it into the luna.lua file
P. S. You can apply the script to all episodes by dropping the quickrespawn.lua file into the "scripts" folder
And then paste the code into the lunabase.lua file (at the end of the file) (in "scripts/base/game")
Code: Select all
quickrestart.resetpowers = true -- Reset powerups to the state it was at the start of the level (if at least one player is alive)
quickrestart.losepowerups = true -- Lose power-ups if all players have died
quickrestart.loselives = true -- Lose 1-UPs if all players have died
quickrestart.restartkey = VK_F8 -- Quick restart key, you may change a key
Keycodes List
DOWNLOAD v1.1
Test Level
v1.1:
• Saving powerups works even if it's a deprecated checkpoint
• Fixed bug of saving lives
Last edited by
LooKiCH on Tue Feb 06, 2024 3:35 pm, edited 4 times in total.