How to make a side-scrolling camera?

similar to that of hollow knight
in which whenever you reach the end of the screen, the camera just automatically moves towards the center of the next screen.

I just saw this in Winstreak!'s Zelda YouTube tutorial. You basically check if the player’s x or y position is greater or less than the screen’s x or y dimensions, move the camera.

1 Like