#rhythm game event track

4 messages · Page 1 of 1 (latest)

winged dagger
#

Hey folks, im making a rhytm game (think guitar hero), and i'm looking for a way to either interpret a file or have a resource where the events for spawning the events on the track.
(like a Json, dictionary, resource, or even text file. I tried MIDI but that kinda fell through...)
Are there any smart or easy to edit ways of doing this?
A video tutorial link is allowed and appreciated.

I can't really show anything because i can't show what i don't know how to make if you get what im saying 😅

solid root
winged dagger
#

ayyy, sweet.
I'm new to file use in Godot in general so this is really sweet!

solid root
#

Once you have that array, you'll want to sort each note it by its time, something like this:```php
var file = JSON.parse_string(FileAccess.open("path").get_as_text())
assert(file is Array)
file.sort_custom(func(a, b): a.time > b.time)