This is probably an easy fix, but I'm tired and my brain hurts:
I'm trying to play a sound whenever any instance of an object reaches either the maximum or minimum of its sine behaviour.
Currently I'm saving the cycle position to an instance variable "cycle" each tick and then testing every tick if cycle is less than 0.02; any less than 0.02 and the sample rarely plays, any more and it will trigger over successive frames, and even at this value it is temperamental, sometimes missing a play other times doubling up. I understand why that happens, but can't see a way around it.
I also tried using "if object.cycle<0.02 trigger once | play sound" but this resulted in the sound playing once for each instance at the start (because they all start their cycles at 0) and then not playing again. I also swapped sine.cyclePosition for sine.Value but the problem is still the same.
Thanks in advance for any help