KadeArchive / Kade-Engine

Kade Engine is a Competitive Rhythm Game engine rewrite for FNF with Quality of Life features included.
https://kadedev.github.io/Kade-Engine/
Apache License 2.0
409 stars 592 forks source link

Bug Report: can't set position of rendered notes in lua modchart #684

Open The-Evil-Pickle opened 3 years ago

The-Evil-Pickle commented 3 years ago

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.

ACardboardBox1 commented 3 years ago

maybe it's the print("Mod Chart script loaded :)")

Burger-Gaming commented 3 years ago

im pretty sure that it's not the print statement