DE EN FR ES IT CZ

How to fade in/out when loading autosaves ?

This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials

  1. · 12 years ago
    When loading an autosave, the engine directly shows the scene. I would like to set a fade transition instead, is it possible ?
  2. New to Visionaire Studio?

    Create point and click adventures without coding. The free version covers up to 25 scenes per project. For more scenes or to earn money with your game, you need a license.

    See the Indie Bundle Try it for free
  3. · 12 years ago
    Try this...

    1. inside of your playable scenes create an at begin of scene action (if you don't already have one).

    2. add an execute a script action part containing (see code block below) to the very top of the at begin of scene actions action part list...
    game.CurrentScene.SceneBrightness = 0
    game.CurrentScene:to(500, {SceneBrightness = 100}, easeQuintInOut)
    


    It should set the scenes brightness to 0 (which will be full black) on scene load & then should fade back to 100% over 500ms.

    P.S: I can't guarantee it will work in the current public build, but it will work in the next public build. I don't know when the next build will be out though. If it doesn't work, it might work if you link directly to the scene itself rather than trying to access it via game.CurrentScene.

    -- replace scene name with the name of the scene (name is case sensitive)
    Scenes["scene_name"].SceneBrightness = 0
    Scenes["scene_name"]:to(500, {SceneBrightness = 100}, easeQuintInOut)
    
  4. · 12 years ago
    Second version works, thank you !
  5. · 12 years ago
    No problem. smile

    The first version works in the build I'm using, but I know that the shorthand Lua is not 100% working in the current public build; especially in regards to path finding where global tables such as game are involved.

This thread is closed because nobody has replied for more than a year. Feel free to ask your question in a new thread.

New thread

Really delete this post?