Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / About Play animation to image command (Playing the video again from beginning)

Author
Message
Takis76
19
Years of Service
User Offline
Joined: 9th Apr 2005
Location: Greece
Posted: 18th Aug 2011 19:53
Hi again

I have one little question about Play animation to image.
I have one avi file which is the worm hole travel sequence of my portal and when I am entering my portal I play the file.


Everything is correct. But I have a little problem.
When some animation was played , then do not played again.

Is it possible to rewind the video clip and play it again? (Not Loop animation)
For example if I want to see my worm hole travel everytime I enter in my portal , I need to play the video from the beginning. Everytime I play my animation for the second time the video starts from the end or from the last position , if I have paused it.

The darkbasic help files don't describes any command which rewinds the animations.

Thank you...
Takis76
19
Years of Service
User Offline
Joined: 9th Apr 2005
Location: Greece
Posted: 18th Aug 2011 21:59 Edited at: 18th Aug 2011 22:21
I think , I fixed it , when I call the stop animation after my animation is stopped already.
After play, the video finish and stops. In fact was stopped , but if you don't call stop animation even after the finished video , when you try to play it again, the video doesn't start , might this is the language bug.

When any animation (video) finishes , but not stop animation command will called , you can't start it again with play animation command. Even if the video stopped because is finsihed. In fact didn't stop in eyes of Darkbasic Pro.

I fixed it , when I call the stop command even my video is finished and stopped playing because there wasn't any other video to be played.

For me this is a bug , stop command must be called automatically when the animation finishes and some rewind command must be added.

Thank you....

I found it , incidentally.

Login to post a reply

Server time is: 2024-11-22 19:10:25
Your offset time is: 2024-11-22 19:10:25