• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

[SOLVED] Slight problem with panning camera.

ezgif.com-gif-maker (1).gif

Now the problem here is that I have the camera panning when obj_player reaches the very edge of the camera.
What I was expecting was the camera starting to pan when obj_player reaches the VERY MIDDLE of the screen,
and when the camera reaches the edge of a room, obj_player will move to a different position as shown in the GIF. I forgot how to perform such thing.

Here are the properties I currently have running.

VIEWPORT 0 - Visible:
Camera Properties: X and Y Pos: 0 Width: 320 Height: 240
Viewport 0 Properties: X and Y Pos: 0 Width: 640 Height: 480
Object Following: obj_player, Hor. Border: 32 Ver. Border: 32 Hor. Speed: -1 Ver. Speed: -1

What do I do?
 

dadicool

Member
Hello,

The horizontal and vertival borders with 160 and 120 values will make your object always on the middle of the screen except when you are near to a edge of the room.
 
Top