How can you place a intro movie BEFORE a scene

  • #1, by madisongeronimoSunday, 04. June 2017, 23:18 7 years ago
    So I want to input a movie intro before a scene not before the whole game. So like when the player starts the game from the main menu a movie intro plays.

    Newbie

    33 Posts


  • #2, by afrlmeSunday, 04. June 2017, 23:44 7 years ago
    So I want to input a movie intro before a scene not before the whole game. So like when the player starts the game from the main menu a movie intro plays.
    Add a play video action part into your new game actions before the action part that changes the scene or immediately after the change scene action. One way ends up briefly flashing the scene before or after - I forget which off the top of my head, but you could change to the scene & manually set scene brightness to 0% instantly, then fade in the scene brightness with Lua script.

    Anyway, my solution would be... change to x scene. Then inside of the actions tab of that specific scene create a "at begin of scene" action & then inside of that create some actions like...

    execute a script > (Lua code below)
    scn_brightness = game.CurrentScene.SceneBrightness
    game.CurrentScene:to(0, {SceneBrightness = 0})

    play video "some video" (pause & resume sounds)
    execute a script > (Lua code below)

    game.CurrentScene:to(500, {SceneBrightness = scn_brightness})


    ... should work fine. smile

    Imperator

    7278 Posts