does anyone know the code you need to side scroll
i'm trying to make a hallway and do where you can just explore it and not have to load each part of the hallway
i'm trying to make a hallway and do where you can just explore it and not have to load each part of the hallway
to my understanding, the only way to side scroll is through the use of a camera object and to shift all sprites based off of the camera,excluding those that the camera follows.
how would I do that?
move the hallway around the player instead of moving the player.
how would I do that
you would have to move the camera around, likely just where the main focus is, and then subtract the camera.x and camera.y from all the sprites shown. you could also use it to change screen.setTranslation but that can be iffy with collision detection
oh ok thanks