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:
LOAD ANIMATION "film\chargement5e.avi",15
LOOP ANIMATION 15^
PLAY ANIMATION TO IMAGE 15,5,0,0,800,600
MAKE OBJECT PLAIN 144,800,600
SET OBJECT 144,1,0,0,0,0,0,0
POSITION OBJECT 144,0,0,0
SCALE OBJECT 144,50,50,50
FIX OBJECT PIVOT 144
do
TEXTURE OBJECT 144,5
CONTROL CAMERA USING ARROWKEYS 0, 5, 5
SYNC
loop
This plays once
Changing like this:
LOAD ANIMATION "film\chargement5e.avi",15
PLAY ANIMATION TO IMAGE 15,5,0,0,800,600
MAKE OBJECT PLAIN 144,800,600
SET OBJECT 144,1,0,0,0,0,0,0
POSITION OBJECT 144,0,0,0
SCALE OBJECT 144,50,50,50
FIX OBJECT PIVOT 144
do
TEXTURE OBJECT 144,5
CONTROL CAMERA USING ARROWKEYS 0, 5, 5
SYNC
rem To have the animation playing in an infinite loop I added this, but normally the loop animation should suffice...
if ANIMATION PLAYING(15)=0 then PLAY ANIMATION 15
loop
I get the animation playing in an infinite loops.
Guido
http://www.vues3d.com
