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 / playing aiv file

Author
Message
Rahil45
16
Years of Service
User Offline
Joined: 31st Jul 2008
Location:
Posted: 1st Aug 2008 00:54
Im new at programming, and when i use

animstring$ = "movie.avi"
load animation animstring$,1
play animation 1

it just plays the sound, and i dont see the picture at all.
what is the correct code to play a move? Im trying to get it to play after the player wins.
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 1st Aug 2008 01:58
Try adding SYNC after PLAY ANIMATION 1.

Rahil45
16
Years of Service
User Offline
Joined: 31st Jul 2008
Location:
Posted: 1st Aug 2008 02:57
already tried that
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 1st Aug 2008 03:03
animstring$ = "movie.avi"
load animation animstring$,1
do
play animation 1
sync
loop
Rahil45
16
Years of Service
User Offline
Joined: 31st Jul 2008
Location:
Posted: 1st Aug 2008 03:40
well, i did what you said cliff, but then its just a still picture.
when i set sync rate to 1 i hear the sound but the motion in 1fps and if i raise it the voice just repeats faster
Rahil45
16
Years of Service
User Offline
Joined: 31st Jul 2008
Location:
Posted: 1st Aug 2008 07:47
also, can someone give me a code snippet of a timer? like a timer that is displayed by text and counts up by one second
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 1st Aug 2008 12:58
windows killers code should work for you
and always set sync on and sync rate 0 in the beginning of your code.
sync rate to any value you nead but 60 is most comercial games default value.
i think the code i posted will start the animation from frame 1 in every loop thats why it dont work.
i havent used that much avi animations in my projects.
cheers
Rahil45
16
Years of Service
User Offline
Joined: 31st Jul 2008
Location:
Posted: 4th Aug 2008 22:08
thanks windows killer, it worked

Login to post a reply

Server time is: 2024-11-24 22:42:51
Your offset time is: 2024-11-24 22:42:51