if (my.frame < (number after +)) {MY.FRAME += 1 *time_step;}
in loop should be enough


Never say never.