Hi Jean,
thank you for your reply. Well, I'm looking for an approach that is the most accurate in the end. I wanna spawn objects exactly at the same time of a snare drum for example, so it needs to be in sync.
I know the time in milliseconds but I'm not sure if there will be a delay sometime.
Working with timesamples would make sure that it still works after an hour of gameplay. What do you think?
I am using the tolerance because playmaker/unity doesn't seem to be able to check 48000 values each second.
For me it doesn't seem logical that the tolerance gap adds up the more I check.
Example:
I wanna send an action at
48,000 ... 96,000 ... 144,000
My variable to check is 48,000
Music starts playing, Unity starts counting
somewhere between 47,500 and 48,500 the action will be sent, at the same time I add 48,000 to my variable, so it' 96,000 now
Unity continues counting
somewhere between 95,500 and 96,500 the action will be sent, at the same time I add 48,000 to my variable, so it's 144,000
and so on ...
So in theory there is no way for an increasing gap.
Am I wrong?