RPG Maker Forums

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:

  • (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).
What would be a proper event (even better if applicable to a common event) that would let me:

  1. Be able to toggle between the screen focus of the player and the event using a single key?
  2. Be able to keep the focus on the player or event until toggled again?
As always, thank you for taking the time to read this post and potentially provide a solution!  :)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,049
Messages
1,018,547
Members
137,835
Latest member
yetisteven
Top