OSU: Mania Track System

I’ve been thinking about what to make, and I’ve decided that I should make an OSU: Mania system. My only issue? I CAN’T FIGURE OUT HOW TO MAKE AN EFFICIENT SONG TRACK SYSTEM THINGIE MAJIGGIE I would really appreciate some help or advices on how I should make my system, ex: tables, modules, folders, whatever. I can make the note display system and activating system but I just need some help on how to create an efficient way to make notes in a track like it’s position in the song, timing, and which note it is. Thank you to anyone who tries to help!!

You can probably store a ModuleScript like this:

return {
    backgroundImage = ...,
    song = ...,
    ... other stuff ...,
    notes = {
        { time = 1000, notes = { {...}, {...} } }, -- time is in milliseconds
    }
}

and a note is stored like

{
    position = 1, -- 1 through 4 for a 4-note rhythm game
    endTime = 2000, -- in milliseconds, can be nil, is used for long notes
}

I haven’t made a rhythm game, though, so this might not be the best solution.

Sorry if I misunderstood what you wanted.

thank you! this is somewhat how I thought about it. I’m unsure about milliseconds though, can I have a quick runthrough?

What do you mean? 1000 milliseconds = 1 second. Storing it like this just helps avoids floating point errors, if that’s what you mean.

Okay!! Thank you! This really helps as I didn’t understand the conversion from milliseconds and seconds.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.