Licence od 75 € Přihlásit se
DE EN FR ES IT CZ

return to scene ?

Toto téma je několik let staré. Některé údaje se mohou týkat starší verze Visionaire Studia. Aktuální návody

  1. · 8 years ago
    Lets say I can enter a scene from different places and I would like to return back to the same scene as I came from, is there anyway to do that ?

  2. Pracujete na hře?

    Bezplatná verze umožňuje až 25 scén na projekt. Pro více scén a pro prodej hry potřebujete licenci.

    Zobrazit licence Vyzkoušet zdarma
  3. · 8 years ago
    You mean the previous scene you were on, or the current scene that you are already on?
  4. · 8 years ago
    The previous scene, say I make some kind of settings scene the user can goto with a key press or something, after finished there I want to return to the scene where the user was before that.

  5. · 8 years ago
    If the playable character was on the previous scene then you can use the "change to scene of character" action part - alternatively, you could store the current scene into a Lua variable before changing to the menu scene, then use that variable to go back to the previous scene.

    For example...

    execute a script >
    prev_scene = game.CurrentScene
    show scene/menu "menu"

    Now to go back to the previous scene when done you can use the execute a script action part & just inverse the script you wrote above, like so...
    game.CurrentScene = prev_scene

    It should take you back to the scene you stored in the prev_scene Lua variable you created.

Toto téma je uzavřené, protože tu přes rok nikdo neodpověděl. Svůj dotaz můžete položit v novém tématu.

Nové téma

Opravdu smazat tento příspěvek?