Licenza da 75 € Accedi
DE EN FR ES IT CZ

How can the camera follow the player?

Questa discussione ha qualche anno. Alcuni dettagli potrebbero riferirsi a una versione precedente di Visionaire Studio. Tutorial aggiornati

  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. Stai lavorando a un gioco?

    La versione gratuita consente fino a 25 scene per progetto. Per più scene e per vendere il tuo gioco ti serve una licenza.

    Vedi le licenze Provalo gratis
  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

Questa discussione è chiusa perché nessuno risponde da più di un anno. Puoi fare la tua domanda in una nuova discussione.

Nuova discussione

Eliminare davvero questo messaggio?