Klardonics
Member
Hello,
Basically I'm trying to accomplish something like how Metroid or Super Metroid handles its "camera" and room transitions. What I want to do is draw various rooms using tiles within one GM Room asset, and the reason I want to do this is that more objects than just the player will be moving freely in the world (like an AI enemy searching for the player). So the camera view follows the player until the view hits the edge of one of these "rooms", when it would then freeze on that axis.
I'd prefer not to type in these boundaries manually because it's slow and annoying to change, especially if I would play test and need to move "rooms" around. Ideally I'd like this to work with tiles, perhaps even just putting a single tile in each corner of a "room", and then code would just handle the rest. Room transitions could be easy this way too, because I could just turn off the view collision when I want to transition between "rooms."
I know about tilemap_get_at_pixel and camera_set_view_pos, but I'm just having trouble wrapping my head around how this might work.
Thanks a bunch
Basically I'm trying to accomplish something like how Metroid or Super Metroid handles its "camera" and room transitions. What I want to do is draw various rooms using tiles within one GM Room asset, and the reason I want to do this is that more objects than just the player will be moving freely in the world (like an AI enemy searching for the player). So the camera view follows the player until the view hits the edge of one of these "rooms", when it would then freeze on that axis.
I'd prefer not to type in these boundaries manually because it's slow and annoying to change, especially if I would play test and need to move "rooms" around. Ideally I'd like this to work with tiles, perhaps even just putting a single tile in each corner of a "room", and then code would just handle the rest. Room transitions could be easy this way too, because I could just turn off the view collision when I want to transition between "rooms."
I know about tilemap_get_at_pixel and camera_set_view_pos, but I'm just having trouble wrapping my head around how this might work.
Thanks a bunch