- Home /
Best way to track music for game
Hopefully someone can set me straight here.
I've been trying to build a simple music game where game objects will change depending on specific beats of the music. I was first planning on doing this by setting timers that would line up with specific beats and having the game-objects do things when that timer is hit (IE. every 2 seconds a drum beat so a 2 second timer for the game-object).
I've yet to test this but I'm starting to get worried that the music will hitch and get out of sync with the game-object's timers. Is there a better way to do this? Something that could look at the music and see the beats and trigger those actions that the timer would have?
Thanks!
Your answer
![](https://koobas.hobune.stream/wayback/20220613160341im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
using Contains(gameObject) to find and destroy a gameObject from a list 2 Answers
Staged Prefab can't "Apply" after adding using Gameobject as a variable 1 Answer
Removing music gameobject when no-longer wanted. 1 Answer
Continuous AudioSource in DontDestroyOnLoad 1 Answer
How I can change the speed of an object with the speed of sound so they are evenly matched? 2 Answers