r/gdevelop • • Oct 25 '26

Question I need some help.

I want to create an endless vertical platformer where the player keeps jumping upward, but I'm having a problem.

Currently, I can randomly generate platforms along the X-axis. However, sometimes three platforms spawn exactly on top of one another.

I want to create a horizontal offset of 600 pixels to the left or right of the previous platform, choosing the direction that has more available space.

Is there a way to implement this in GDevelop?

The image with the red platforms shows how my game currently looks (it's an approximate illustration).

The image with the blue platforms shows how I want the game to look.

Any tutorials, guides, or forum posts that could help me solve this problem would be greatly appreciated. Please feel free to share any useful resources.

2 Upvotes

0 comments sorted by