I will probably fail at explaining this, but...
I'm trying to make the camera lock to center screen. The camera will still follow the player throughout the level, but when he starts reaching a stage border (either ceiling, wall, or floor) the camera won't keep him centered. Similar to the way Megaman and Castlevania games work.
Is there maybe a Camera_obj block i can make around the level that will restrict the room "view" from ever going beyond it?
Like theepicgeno says, just use the room -> views -> object following
Here is the tech way (from
smart codes)
(you can put it in the create event)
2. Automatic adjusting screen
view_hborder=view_wview/2 -obj_player.sprite_width
view_vborder=view_hview/2 -obj_player.sprite_height
This is probably one of the best "smart codes" I know. It resets your view so that "obj_player" is always perfectly in the middle. If you have a game where the player's sprite changes sizes or shapes, all you gotta do is run this code once after it changes sprites and it is perfect every time! Just make sure you have views turned on.