Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

Make a beginning of scene cutscene only play once

  • #1, by ygmantell 11 years ago Zitieren
    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, by AkcayKaraazmak 11 years ago Zitieren
    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
  • #3, by afrlme 11 years ago Zitieren
    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
  • #4, by AkcayKaraazmak 11 years ago Zitieren
    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
  • #5, by afrlme 11 years ago Zitieren
    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.
  • #6, by AkcayKaraazmak 11 years ago Zitieren
    Cheers bro