If I have a scene that’s a simple 2D platform, wider than the camera view horizontally, are there any common/accepted best practices to make it “endless” - so that when you reach the furthest right hand side it repeats and you’re back at the left? i.e if I knock this together:
And you pass the 6th raised platform, the 1st raised platform will be visible again. So essentially you’re playing the same level but could be running endlessly. (I’m sure there’s a proper name for this…).
The best results I’ve found so far are when I manually set the player’s position.x coordinate so it essentially shoots back to the left when it hits a threshold on the right, but this means the whole screen has to be clear of things like platforms, enemies, etc so they don’t disappear.
I’d also prefer not to make loads of duplicate objects or, if I have to, only temporary ones to help make the effect work - mainly because in my levels there are a finite number of objects that will change as the player continues to pass through and it matters that they only see the same objects on each pass through the level.
Hope that makes sense! Any help on reading or next steps to try would be much appreciated!