Endless game in vertical


#1

I am trying to make a endless dodge item game in vertical, but how do I make the player keeps flying upwards with infinite background and obstacles spawn?? It is pretty hard to explain. The game is pretty similar to the endless road rider game, I’ve tried copied the events but it didn’t work out.


#2

There’s Endless jump (I don’t know, how it exactly called) game example in GDevelop 5, so with this I can help you


#3

If it’s an endless game, I suposse that enemies and background is generated randomly, so you can try to move them down instead of moving the player and the camera. (And remember to destroy them once outside the screen, of course)


#4

Here’s a simple endless flyer game example.
https://editor.gdevelop-app.com/?project=example://plane-and-clouds

Unfortunately it doesn’t have enemies or obstacles as such. I guess you could spawn them in relation to the x/y position of the player. Maybe for variation include a random number out of 300 pixels (or something like that). I never made an endless game before so I’m just guessing here.

Create Object Enemy at position YourPlayerObject.X()+Random(300), YourPlayerObject.Y()+Random(300)