In my code I use next example for play some function
Code:
if(button_pressed == 1 && my.animation > 80 && my. animation < 85)
{
start function
}

It works well if everything is fine with the frame rate, but if the fps drops, simply this part of animation is skipped and my function wont start. What should I do to prevent the frame skip? I use time_step for play my animations.