Hi i am making an endless runner 2d game.
In my game the character doesn’t move, the backgruond instead moves and destroys when it touch an object (Destroyer).
How can i calculate the distance that tha player “runs” from the beginning to the end of the game ?
Thank you