How do I make an infinite floor like in vampire survivors

How do I…

Im trying to make a vampire survivors like game and currently having problems for the floor of the player.

What is the expected result

The expected result is that while the player moves, new floors are created making it seem like endless

What is the actual result

A white blank space appears after I reach the borders like in the screenshot below

Related screenshots

P.S: I tried using a background layer but it look worse

Another P.S: dont mind the enemies

Thanks in advance!!!

Used a tiled sprite, put it on a separate layer behind the player’s layer and then use the change offset actions.


Thanks I will try that