Hi!
I’m making a vertical platformer where platforms generate as you go, to then “fall” to the bottom of the screen.
But i’m having a hard time finding a good way to make them spawn.
right now i’m making one spawn every second, at the highest point the player reached + an offset.
But this makes them stack sometimes so yeah not ideal.
I was thinking of making them spawn a certain distance from the previous one, but that would bring problems:
i also have static platforms, so if a player stands on one of those and waits for a while, the moving platforms would stack infinitely so that would be a problem.
ideally i would need a limit to that second solution here, but i have no idea how to code it so any help would be appreciated.
Thanks in advance!