I'm trying to create a camera which locks to the left side of my view, not allowing my player to go back past the border of the screen (just like Super Mario Land).
At the moment, my view is following my player, and I was just planning to put in the player stepI don't know how to lock this to the edge of the view though. I've tried x = view_xview, but this moves with the view! I just want it to lock to the left edge of the screen. I feel like there must be a really simple solution to this which I'm overlooking. Cheers!
At the moment, my view is following my player, and I was just planning to put in the player step
if (x <= obj_camera.x) x = obj_camera.x