Videos

Post your coding questions such as 'how to' here.
Post Reply
O.Mago.O
Newcomer
Posts: 2
Joined: Fri Aug 07, 2009 2:56 am

Videos

Post by O.Mago.O »

Hello...

How to make a video to watch it again after having finished. I mean the video running forever.

Can you help?

In advance thank you very much.
Magician.
ristis
Moderator
Moderator
Posts: 101
Joined: Sat Sep 08, 2007 4:32 pm
Location: Espoo
Contact:

Re: Videos

Post by ristis »

Hi.

You can use AnimationPlaying() to check whether the video is running or not.

Code: Select all

video = PlayAnimation("video.avi")
Repeat
    DrawAnimation video
     
    If AnimationPlaying(video) = 0 Then video = PlayAnimation("video.avi")
    
    DrawScreen
Forever
Post Reply