# How does the stateTimer parameter is initialized in this method getKeyFrame(stateTimer)?

I have been following the tutorial https://www.youtube.com/watch?v=1fJrhgc0RRw&list=PLZm85UZQLd2SXQzsF-a0-pPF6IWDDdrXt&index=11

I an not able to understand what is stateTimer in getframe method and how is that initialized?

    //if the current state is the same as the previous state increase the state timer.