I've been playing around with this for a hot minute but I can't seem to get this one right. I am making an infinite runner game and I'm almost complete. I'm just trying to get these trees to spawn in a meaningful way, where it's simplistic in the beginning, and progressively gets harder. I think the simple ones are working out well, but once you get to the first loop, the game launches all the things at you the first moment it can.
I've played around with the timing of these windows and sometimes it does come out okay, where the trees are spaced apart well and it feels good, but other times they are either too clumped together that they are right on top of one another, or they're so far apart that the player cannot jump over them. I thought about adjusting the jump height/float but I don't want it to be Super Princess Peach runner. Any ideas how I can take the code that Rojo has provided here and make it feel better as a player?
Since meaningful is a subjective term, I will tell you I am looking to have the trees spawn as close as right next to each other, but never far enough apart that a jump won't clear it. I'm using platform controls with the standard jump height if that helps at all.