How to make sure an object is at a certain position when a float has a certain value?
I'm making a rhythm game where arrows will spawn and you have to avoid them to music. I have a float value that represents the beats in the audio file. The audio and float is synced so that when the float is at a whole value a beat in the song is played. Now I want o make sure that an arrow is spawned at the right time so that it's at a position so that the player can avoid it to the beat. So for example, when the beat float has an value of 5 an arrow should have spawned beforehand and then be at the right position so that the player can avoid it exactly as beat 5 hits. I have some ideas but not sure if they're the best or if they will work.
Your answer
Follow this Question
Related Questions
OverlapSphere won't accept a variable as position (stays instead at 0,0,0?) 1 Answer
float value is reset after every update 1 Answer
How to assign slider to float: Spin, on a gameobject 1 Answer
Switch Position of two moving objects 1 Answer
allow users upload their own music file and play a rhythm game 0 Answers