- Joined
- Feb 19, 2015
- Messages
- 27
- Reaction score
- 1
- First Language
- English
I'm looking to control two players (the player and a separate event), and when the two of them separate across the map, the camera will focus on the player, leaving the event to wander blind. I'm looking to figure out an event where I can press a key (in this case, Q) and it will focus on the player or the event indefinitely until it is pressed again, swapping between the player and event.
I'm currently using these commands:

I'm currently using these commands:
- (Input.isTriggered('q')) (IF the player triggers the Q key.)
- $gamePlayer.center($gamePlayer.x, $gamePlayer.y) (Centers the screen on the player.)
- $gamePlayer.center($gameMap.event(2).x, $gameMap.event(2).y) (Centers the screen on Event ID 2, which in this case is the other event that is under the player's control).
- Be able to toggle between the screen focus of the player and the event using a single key?
- Be able to keep the focus on the player or event until toggled again?

