Skip to content

Changing Scroll Speed

Bolo edited this page Mar 14, 2022 · 6 revisions

Changing scroll Speed through LUA or source code.

For Lua:

Once you have made your modchart.lua at your song's json folder
You can make scroll Speed changes through this function:
changeScrollSpeed(v:Float,t:Float,e:String).


v is the number to multiplicate your scroll Speed to increase or decrease it.
t is the time to take to scrollSpeed to change.
e is the ease effect you want to make when scrollSpeed changes. Ex: SineOut, CubeIn, SmootherStepInOut, Linear.

If you want to modify scrollSpeed directly just use:
setScrollSpeed(v:Float)
Where v is the number the scrollSpeed will be set.

For source code:

Do the same steps like in LUA in PlayState.hx.
If you want to modify scrollSpeed directly:
Edit scrollSpeed var in PlayState.hx

Messing with this shit you can do cool modchart effects or crashing the fucking game.

Clone this wiki locally