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

Video in loop mode [Solved]

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

  1. · 13 years ago
    Hi everyone,
    how can I put a video in loop?
    I no would create a lua script...

    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. · 13 years ago
    why would you want to put a video on loop?

    I'm guessing you are wanting it for the startup of the game until the player skips it with esc to get to main menu?

    Not 100% sure but try creating a condition "intro_skipped" set to false
    & then in game start action or at begin scene action - wherever you set the video playing add action parts...
    if 'intro_skipped' is false
     play video 'video name'
     jump back 2 action parts
    end if
    

    actually it might be a good idea to add this inside a called by other action block.

    In key input Escape (release) add...
    if condition 'intro_skipped' is false
     change condition 'intro_skipped' to true
    end if
    


    I can't say that it will work mind & I'm not sure if videos pause actions in the action part list while playing or not & I'm also not sure if pressing escape will trigger key input actions while video/cutscene etc is playing.
  4. · 13 years ago
    No no
    I need to play a video in loop while the character is in a scene.
    Something like at the beginning of the scene -> play video and loop infinitely... :-)


  5. · 13 years ago
    Maybe with a while loop function but I don't know how do it in visionaire.
  6. · 13 years ago
    errr....

    I think you are talking about having a video file play inside of the scene (maybe as a background, or on a tv screen or something?), while being able to control the character etc?

    It's not possible.

    I believe Simon ASA asked me about this ages ago. If you want to do that, then you will need to export the video as frames & import them as a normal animation. I wouldn't use a lot of frames though as I imagine they will be quite size heavy.
  7. · 13 years ago
    The character enter in a scene and then play the video, it's the only action in this scene. We have a background image that is first and last frame of the video. We don't need to control the character in this scene. The player just can exit the scene.

    - show bg image
    - play video
    - show bg image
    loop

    Can we do it?

    Many thanks for your patience.
  8. · 13 years ago
    Do you just want the character to enter the scene and the video will just play over and over again? Unfortunately when you play a video you can't actually use any actions (not that I'm aware of) so your character wouldn't be able to exit unless you skipped the video (press escape) then gave the option for him to exit.

    I'm assuming it's a long/complex animation which is why you want to use video? If you wanted to save space you could cut out the static objects in the video, and only input the moving parts? (just a suggestion)

    Maybe explain/ screenshot the scene so we can figure out a solution for you?


  9. · 13 years ago
    How big is the video?
    If its small then you can render it as .png frames and do it as an animation (overkill but it will work)
  10. · 13 years ago
    @Dilated
    “
    Do you just want the character to enter the scene and the video will just play over and over again? Unfortunately when you play a video you can't actually use any actions (not that I'm aware of) so your character wouldn't be able to exit unless you skipped the video (press escape) then gave the option for him to exit.
    „


    Really, I create the scene and then insert the video as "in the beginning of scene" action. confuse

    @brut69
    “

    How big is the video?
    If its small then you can render it as .png frames and do it as an animation (overkill but it will work)
    „


    Yeah, we solved creating a .png frames sequence animation.smile
  11. · 13 years ago
    Awesome, I am glad that worked for you

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?