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.

DarkBASIC Professional Discussion / stop video from playing after its finished

Author
Message
Daniel wright 2311
User Banned
Posted: 26th Aug 2010 01:34
ok, so when i play animation 1 in the game the video never stops. Is there a command to stop the animation after it finishes.here is my code, this did not stop it, help





The Slayer
Forum Vice President
16
Years of Service
User Offline
Joined: 9th Nov 2009
Playing: (Hide and) Seek and Destroy on my guitar!
Posted: 26th Aug 2010 02:02 Edited at: 26th Aug 2010 02:04
Quote: "if animation playing (1)=10"

Maybe this could be it?
Your checking a value of 10, which should actually be 1 (if the animation is playing 1 is returned, else 0).
And, normally an animation stops automatically.
You shouldn't sync either IMO.

This works fine for me:



Cheers

Slayer rules!!! Yeaaah, man!
Daniel wright 2311
User Banned
Posted: 26th Aug 2010 02:28
thanks, i missed the 10,Ill try to see if your code works for me, thank you

Daniel wright 2311
User Banned
Posted: 26th Aug 2010 04:49
well, that code did not stop the video at all from playing, it keep playing as it was looping. I tryed something difrent but still no luck. could someone look at my code and tell me what it is i need to do here to stop my animation after the video is done.



Daniel wright 2311
User Banned
Posted: 26th Aug 2010 05:47
well i did figure this out with some simple code and a switch is all, im so imbaressed.



Login to post a reply

Server time is: 2026-07-23 09:15:55
Your offset time is: 2026-07-23 09:15:55