How can you place a intro movie BEFORE a scene

  • #1, by madisongeronimoSunday, 04. June 2017, 23:18 3 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 3 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})
    1
    2

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

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


    ... should work fine. smile

    Imperator

    6842 Posts

Write post