So I've been messing with the lua modchart and can't get setRenderedNotePos to wortk. I've been adding a modchart.lua file to data/pico for testing stuff, and I've successfully done things like moved the strum line and camera around. However, I can't seem to affect the position of the notes. Here's the code I'm running:
`function start (song)
print("Song: " .. song .. " @ " .. bpm .. " downscroll: " .. downscroll)
end
function update (elapsed)
if anyNotes() then
for i = 0, getRenderedNotes() do
setRenderedNotePos(5, 5, i)
end
end
end
function beatHit (beat)
-- do nothing
end
function stepHit (step)
-- do nothing
end
function keyPressed (key)
-- do nothing
end
print("Mod Chart script loaded :)")`
I've tried it with different x/y values, tried putting setRenderedNotePos in keyPressed, tried a whole buncha stuff and nothing I could think of made a difference. The notes just won't budge.
So I've been messing with the lua modchart and can't get setRenderedNotePos to wortk. I've been adding a modchart.lua file to data/pico for testing stuff, and I've successfully done things like moved the strum line and camera around. However, I can't seem to affect the position of the notes. Here's the code I'm running:
`function start (song) print("Song: " .. song .. " @ " .. bpm .. " downscroll: " .. downscroll) end
function update (elapsed) if anyNotes() then for i = 0, getRenderedNotes() do setRenderedNotePos(5, 5, i) end end end
function beatHit (beat) -- do nothing end
function stepHit (step) -- do nothing end
function keyPressed (key) -- do nothing end
print("Mod Chart script loaded :)")`
I've tried it with different x/y values, tried putting setRenderedNotePos in keyPressed, tried a whole buncha stuff and nothing I could think of made a difference. The notes just won't budge.