• 3D
  • help with endless runner

(not quite sure where to post this)

im making a subway surfers-type-game that is supposed to be endless and somewhat random, it is also supposed to get harder over time, the main diffrence between it and subway surfers is that instead of avoiding trains, youre either avoiding or jumping over gaps. the floor is basically 3 tiles, some of which will randomly be missing.

i want to know if im going about this right, my idea is to have rows of tiles move backwards while the character stays still, once the row hits a certain point, it will be deleted and spawn one of 8 tile types (for each possible combination of the 3 tiles), which one to use would be decided by a random number generator, to make it become harder, the character would move something like 0.1% faster each second (or something). am i going about this right or is there a better way to do it?

That should work. I have done something similar in a infinite runner tutorial I wrote (no longer around, sadly).

The only thing I would recommend is using RigidBody nodes, instead of StaticBody nodes. From what I remember, there is a performance cost for moving StaticBody nodes. It was something I was not aware of in my infinite runner and I think it may have contributed to some of the performance issues the project had.