So I’ve worked around a little. I used your audio trigger to make a slider count the amount of gunshots.
Then I started to write an expression for the time remapping of Bullet 1, so that it will play when the slider is 1.
It triggers, but it doesnt play the animation properly. It starts at 1 for instance? Is there sth wrong with how I want to get the time at which the slider becomes 1?
slider = thisComp.layer(“control”).effect(“Slider Control”)(“Slider”);
check = effect(“Checkbox Control”)(“Checkbox”);
frame = Math.round(time / thisComp.frameDuration);
if(slider == 0)
{
0
}
else if(slider => 1)
{
t = time – frame * thisComp.frameDuration;
linear(time, t, 15, 0, 5)
}