End-to-End Level Wrapping?

Hello! I am attempting to make a sidescrolling arcade-style racing game, and I’d like to know if there is a way that I could “wrap” the ends of a level to/around each other?

To elaborate, the game is going to be based around completing laps around a 2D track. As such, I need to find a way to have it so that when a player reaches the rightmost end of the level (or, in this case, “track”), said rightmost end loops back around to the leftmost end of the track.

Is there a way that this can be done?

1 Like

i actually made something like this a few weeks ago, but for a planet. it could probably b used for what you want, with a few adjustments.

the other thing you could do is just make the track itself circle back to the start.

also, welcome to the community!

This looks like it’s exactly what I was hoping to find. Thank you very much!

1 Like

this is the racing game im currently working on, feel free to explore the code!