So I'm making my first Phaser game for school. I want to make a game that is inspired by Stick Hero. The only difference is that the platforms are logs. The problem is the first time the player walks the length of the bridge but the second time the player walks the same distance although the bridge is longer. The functions i used are in the attachement. How's the best way to do this or does anyone have an example i can use?
Thanks!
GameState.js