License from €75
DE EN FR ES IT CZ

How can the camera follow the player?

This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials

  1. · 9 years ago
    Hey guys,

    can you tell me how I can setup that the camera follows the hero from beginning? At the moment it is: if I reach the edge of the visible area, the camera starts moving. But I want the character centered, so:

    1. How can I do this globally?
    2. Is it possible to change sometimes (like in cutscenes)?

    Thanks!
  2. Working on a game?

    The free version covers up to 25 scenes per project. For more scenes and to sell your game, you need a license. Forum readers get the Indie Bundle 15 % off with the code FORUM15: €84.15 instead of €99, valid until 31 Dec 2026.

    Get 15 % off Try it for free
  3. · 9 years ago
    How to always center camera on active character...
    game.HorizontalScrollDistance = (game.WindowResolution.x / 2)
    game.VerticalScrollDistance = (game.WindowResolution.y / 2)

    Add that inside of an execute a script action part.

    You can reset it back to the default value by doing  the same thing, but setting the values back to 5...
    game.HorizontalScrollDistance = 5
    game.VerticalScrollDistance = 5

  4. · 9 years ago
    Hi AFRLme,

    you are a genius, big thank you!

    Alex

This thread is closed because nobody has replied for more than a year. Feel free to ask your question in a new thread.

New thread

Really delete this post?