Video in loop mode [Solved]

  • #1, by andy-rinaldiThursday, 21. August 2014, 23:10 11 years ago
    Hi everyone,
    how can I put a video in loop?
    I no would create a lua script...

    Thanks.

    Forum Fan

    160 Posts


  • #2, by afrlmeFriday, 22. August 2014, 00:22 11 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.

    Imperator

    7285 Posts

  • #3, by andy-rinaldiFriday, 22. August 2014, 11:13 11 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... :-)


    Forum Fan

    160 Posts

  • #4, by andy-rinaldiFriday, 22. August 2014, 11:15 11 years ago
    Maybe with a while loop function but I don't know how do it in visionaire.

    Forum Fan

    160 Posts

  • #5, by afrlmeFriday, 22. August 2014, 14:25 11 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.

    Imperator

    7285 Posts

  • #6, by andy-rinaldiFriday, 22. August 2014, 23:04 11 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.

    Forum Fan

    160 Posts

  • #7, by DilatedMonday, 25. August 2014, 10:41 11 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?


    Forum Fan

    149 Posts

  • #8, by bobby23Tuesday, 26. August 2014, 17:38 11 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)

    Great Poster

    265 Posts

  • #9, by andy-rinaldiTuesday, 26. August 2014, 18:36 11 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

    Forum Fan

    160 Posts

  • #10, by bobby23Tuesday, 26. August 2014, 22:31 11 years ago
    Awesome, I am glad that worked for you

    Great Poster

    265 Posts