License from €75 Log in
DE EN FR ES IT CZ

Make a beginning of scene cutscene only play once

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

  1. · 12 years ago
    I made a cutscene to start at the beginning of a scene, however, when I go back to that scene, the cutscene plays again.
    Thanks
  2. Working on a game?

    The free version covers up to 25 scenes per project. For more scenes and to sell your game, you need a license.

    See licenses Try it for free
  3. · 12 years ago
    You should have a condition to control it. For example, have a condition with a name "cut_scene_con" and make it false.

    And just before cutScene_begin, write

    if condition cut_scene_con = false then
    begin cut scene
    .
    .
    .
    condition cut_scene_con = true
    end cut scene
  4. · 12 years ago
    “
    You should have a condition to control it. For example, have a condition with a name "cut_scene_con" and make it false.

    And just before cutScene_begin, write

    if condition cut_scene_con = false then
    begin cut scene
    .
    .
    .
    condition cut_scene_con = true
    end cut scene
    „


    Don't forget to close the if query off with an end if action part. wink
  5. · 12 years ago
    Hey Lee, which one below is right mate?

    If con == true
    goto A
    else
    goto B
    end if

    OR

    If con == true
    goto A
    end if
    else
    gotoB
    end if


    --I guess first one, right?smile
  6. · 12 years ago
    Yep the first one. But it depends as you can do additional if queries inside of other if queries.

    if x then
     ...
     if b then
      ..
     end if
    else
     ...
    end if
    

    ... the end action part always closes off the last created if query (if, function or loop in the case of Lua) inside of the editor, so you need to think about exactly where you need to place the end if. Also there should be the same amount of end if as if action parts.
  7. · 12 years ago
    Cheers bro

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?