How do I make my camera keep focus on one object

  • Greetings again!

    I have attached a picture of the group for the camera (scrollto behavior) when focused on the main Player sprite. I have an action that disables the group and changes the Goocontrol variable to something else and the camera will proceed to move to the appropriate other object. The issue is that the project never seems to want to let the Player sprite out of sight. When I move the new object that the camera is following further and further away from the Player sprite the scrolling will eventually slow to a crawl, leaving the Player sprite just barely out of sight and the object that the camera is now following out of sight.

    When the camera is following the Player sprite it functions fine.

    Thank you.

  • You don't need the Every tick conditions, the global variables will run every tick.

    Can you show the event that change the global variables.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks for the information, the every tick has been removed.

    I am a noob. Another object had the scrollto behavior enabled.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)