Exemple #1
0
 private static void startCutscene(string cutscene, string after)
 {
     CutsceneName  = cutscene;
     CutsceneAfter = after;
     GD.Print(Cutscene.makeScenePath(1));
     if (!KWorld.worldFileExists(Cutscene.makeScenePath(1)))
     {
         Tree.ChangeScene(after); return;
     }
     Tree.ChangeScene("res://knytt/ui/Cutscene.tscn");
 }
Exemple #2
0
 public static void playCutscene(string cutscene, string sound)
 {
     Mode           = CutsceneMode.Middle;
     CutsceneName   = cutscene;
     CutsceneAfter  = null;
     CutsceneReturn = Tree.CurrentScene;
     CutsceneSound  = sound;
     if (!KWorld.worldFileExists(Cutscene.makeScenePath(1)))
     {
         if (Tree.Paused)
         {
             Tree.Paused = false; Cutscene.releaseAll();
         }
         return;
     }
     Tree.Paused = true;
     Tree.Root.RemoveChild(Tree.CurrentScene);
     // TODO: how not to blink?
     Tree.ChangeScene("res://knytt/ui/Cutscene.tscn");
 }