Simple infinite generation

all i want is the illusion of infinite land under the player, by loading and unloading multiple of the same tilemap under them to make land go forever. i tried britzl’s infinite land one, but i am thoroughly confused because my player keeps walking offscreen.

Did you modify my example or did you try it as-is? Do you get any errors in the console?

i tried to import it into my pre-existing game, one time the camera wouldn’t follow the player, another, the player would run offscreen, another, the map was just one square with a hole in it and i could just leave, another, i couldn’t move at all. i didn’t modify the example and i got no errors, just that it wasn’t working with my game, and the objects i put in to the game (i put a crate that you can push in there) the main issue was a weird parallax issue on the crate when i could get it to work (relatively, i could still just walk offscreen) like the ground would be moving and it looked like it was moving too, but it wasn’t supposed to be.

Yeah, not sure why it doesn’t work. My recommendation is instead to start with the working example and then gradually move over your game logic, testing every step of the way to make sure it is still working.

it’s not really game logic, all i have is a moving player and the camera following the player, (and some physics objects) but because the infinite generation plane is moving artificially, and my very basic game logic is centered around not doing any perspective tricks at all, they clash and glitch very very badly