3
\$\begingroup\$

The lowdown is this: I'm making a 2D overhead game that takes place in separate screens in a room. Each screen is separated by a few blocks of black space (to give the impression of screens being separate rooms) and a rectangular "transition block" in doorways. My idea is, once a player touches this block, they are moved to the next adjacent screen along with the camera instantly.

I can move a player to the next screen this way, the big hangup that I'm having is moving the camera as well. I want every collision box to have the coordinates needed to set the camera around the next screen once player-box collision happens, similar to the setup I have with the player character.

\$\endgroup\$

1 Answer 1

1
\$\begingroup\$

What you'll want to do is, upon collision, change view_visible. You can set up 8 different views in the room editor, but it sounds like you want to set the new view in the player-box collision object which can be done with room_set_view.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .