How can I make the rate at which obstacles are created proportionate to the movement speed of the obstacles?
I’m making a game similar to Subway Surfers where there are 3 lanes and obstacles come at the player. The obstacles move faster and score goes up every 16th time the game loop is repeated. That all works fine, but I can’t figure out how to make the rate at which the obstacles are created stay proportionate with the speed of the obstacles. I’m doing this with turtle graphics.
How can I make the rate at which obstacles are created proportionate to the movement speed of the obstacles?
I’m making a game similar to Subway Surfers where there are 3 lanes and obstacles come at the player. The obstacles move faster and score goes up every 16th time the game loop is repeated. That all works fine, but I can’t figure out how to make the rate at which the obstacles are created stay proportionate with the speed of the obstacles. I’m doing this with turtle graphics.