create a file in your level folder (the one where all the custom graphics go) called luna.lua, open it in a text editor, and paste the following inside:
Code: Select all
local speedUpValue = 1.1 -- change this number to set how fast the song becomes
function onTick()
if(Timer.isActive() and Timer.getValue() == 100) then
if(Audio.MusicGetSpeed() <= 1 and Audio.MusicGetSpeed() ~= -1) then
Audio.MusicSetSpeed(Audio.MusicGetSpeed() * speedUpValue)
elseif(Audio.MusicGetTempo() <= 1 and Audio.MusicGetTempo() ~= -1) then
Audio.MusicSetTempo(Audio.MusicGetTempo() * speedUpValue)
end
end
end
note that this might not work for absolutely every possible format, but it should work for at least every format which has a "tempo" argument listed
here, as well as ogg files.
if you want this to apply to every level in an episode, create the luna.lua file in your episode folder (the one where your world file is) instead