ac585318
Member
I'm following this guide for making a rhythm game. At this point I need a song position variable, which is the audio track position, but GMS2 seems to make it difficult getting this in a direct and simple way.
Looking at previous threads the audio_sound_get_track_position() function may have used to return the audio's current playing position, but it now seems to get the position the sound will play from (aka the start pos), not it's current position...
The information within audio_debug seems to have "Play Offset" which seems to be exactly what I need, except it's in hexadecimal when I want it in milliseconds and I don't know how to / if I can access this in code... I could probably find another method but this is seeming the most direct and appealing.
Plz help
Edit: So it works a bit differently than I thought it did, the audio_sound_get_track_position() function does actually get position but it's not in milliseconds and not the most precise...
Looking at previous threads the audio_sound_get_track_position() function may have used to return the audio's current playing position, but it now seems to get the position the sound will play from (aka the start pos), not it's current position...
The information within audio_debug seems to have "Play Offset" which seems to be exactly what I need, except it's in hexadecimal when I want it in milliseconds and I don't know how to / if I can access this in code... I could probably find another method but this is seeming the most direct and appealing.
Plz help
Edit: So it works a bit differently than I thought it did, the audio_sound_get_track_position() function does actually get position but it's not in milliseconds and not the most precise...
Last edited: