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 / Loop animation & play animation on image... fails

Author
Message
Vues3d on Kalimee
21
Years of Service
User Offline
Joined: 12th May 2004
Location: NYON (SWITZERLAND)
Posted: 16th Sep 2004 19:00
Hi!
I wrote the code to play a movie on a panel, looping the movie.
When I run the program, I can see the movie on my object playing only once even if at the beginning of the code I give the loop animation command. any idea on why? or what to do to get the movie playing in a loop sequence????

here's the code I used:


Guido
http://www.vues3d.com
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 16th Sep 2004 21:08
PLAY ANIMATION is overriding the LOOP ANIMATION. You use one or the other, not both.

BatVink
http://biglaugh.co.uk/catalog AMD 3000+ Barton, 512Mb Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.
Terms & Conditions apply
Vues3d on Kalimee
21
Years of Service
User Offline
Joined: 12th May 2004
Location: NYON (SWITZERLAND)
Posted: 16th Sep 2004 21:11
I know... I put the PLAY ANIMATION because the loop animation doesn't work...
If I just put Loop Animation, animation plays just once anyway... so, I added the Play animation inside the loop. In this case it works, but I don't understand why the loop animation doesn't work...

Original was:


This plays once

Changing like this:

I get the animation playing in an infinite loops.

Guido
http://www.vues3d.com
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 17th Sep 2004 02:58
since it`s an avi why not just save it as a looped animation? I did this with some "onscreen messages" for a game (onscreen in the sense that they are on-a-screen on a model of a monitor in the game), I think it`s the call to play animation to image that causes the problem, thats just playing the animation, that overides the loop the first time round since the animation is already playing so it won`t change the way it plays the animation, then the anim ends and the loop part was discarded long ago (when it was called), so you don`t get a looped animation, if you modified the second code to read

if ANIMATION PLAYING(15)=0 then LOOP ANIMATION 15

it would probably loop, but since you have to have that line of code in anyway you might as well allow it to do it as it does it, makes the line more usefull since the second way would only ever execute once (I think)


Mentor.

PC1: P4 3ghz, 1gig mem, 3x160gig hd`s, Radeon 9800pro w cooler (3rd gfx card), 6 way speakers.
PC2: AMD 2ghz, 512mb ram, FX5200 ultra, 16 bit SB.
Mini ATX cases suck.

Login to post a reply

Server time is: 2025-06-06 17:20:05
Your offset time is: 2025-06-06 17:20:05