Hmm, im using the PLAY ANIMATION command to play an .AVI file.
This is the full code i'm using:
REM FIRSTLY, READ IN ALL THE DATA FROM THE SAVED TEXT/BYTE FILES
DIM screensize(1,2)
LOAD ARRAY "a.arr",screensize()
X=screensize(1,1)
Y=screensize(1,2)
DIM mapswanted(1,16)
LOAD ARRAY "mapswanted.dat",mapswanted()
DIM showmedia(1,2)
LOAD ARRAY "showmedia.dat",showmedia()
DIM showmedia2(1,2)
LOAD ARRAY "showmedia2.dat",showmedia2()
DIM mediapath$(1,2)
LOAD ARRAY "mediapaths.dat",mediapath$()
REM SET THE WINDOW SIZE FROM THE ARRAY
SET WINDOW SIZE X,Y
REM IF THE USER WANTS A VIDEO TO BE PLAYED, LOAD IT AND THEN PLAY IT
IF showmedia(1,1)=1
LOAD ANIMATION mediapath$(1,1),1
PLAY ANIMATION 1
CLS
GOSUB showbg
REM MAKE IT WAIT THE LENGTH OF THE ANIMATION
ENDIF
REM SHOW THE BACKGROUND
showbg:
MakeABackground(X,Y)
GOSUB buttons
RETURN
REM DRAW THE APPROPRIATE AMOUNT OF BUTTONS FOR THE AMOUNT OF MAPS THE PLAYER WANTS TO LOAD
buttons:
IF mapswanted(1,1)=1
GOSUB maps1
GOTO loopever
ENDIF
IF game_exe_number=2
GOSUB maps2
ENDIF
IF game_exe_number=3
GOSUB maps3
ENDIF
IF game_exe_number=4
GOSUB maps4
ENDIF
IF game_exe_number=5
GOSUB maps5
ENDIF
IF game_exe_number=6
GOSUB maps6
ENDIF
IF game_exe_number=7
GOSUB maps7
ENDIF
IF game_exe_number=8
GOSUB maps8
ENDIF
IF game_exe_number=9
GOSUB maps9
ENDIF
IF game_exe_number=10
GOSUB maps10
ENDIF
IF game_exe_number=11
GOSUB maps11
ENDIF
IF game_exe_number=12
GOSUB maps12
ENDIF
IF game_exe_number=13
GOSUB maps13
ENDIF
IF game_exe_number=14
GOSUB maps14
ENDIF
IF game_exe_number=15
GOSUB maps15
ENDIF
IF game_exe_number=16
GOSUB maps16
ENDIF
RETURN
maps1:
Sync On: Sync Rate 60
Set Text Opaque
Do
Mx=MouseX(): My=MouseY(): Mc=MouseClick()
Gosub CheckRegion
Sync
Loop
End
CheckRegion:
Rem First Button
If Mx > 245 and My > 186 And Mx < 566 And My < 242
If Mc=1
Rem Add here, whatever code you want to be executed when you click button 1
EXECUTE FILE game_exe_name1$,game_exe_name1$,game_exe_name1$
Else
UnfilledBox(245,186,566,242,RGB(255,0,0)): Rem Highlight Button
Endif
Endif
Return
Function UnfilledBox(X1,Y1,X2,Y2,Colour)
Ink Colour,0
Line X1-1,Y1-1,X2+1,Y1-1
Line X2+1,Y1-1,X2+1,Y2+1
Line X2+1,Y2+1,X1-1,Y2+1
Line X1-1,Y2+1,X1-1,Y1-1
EndFunction
GOSUB main_menu_loop
RETURN
maps2:
RETURN
maps3:
RETURN
maps4:
RETURN
maps5:
RETURN
maps6:
RETURN
maps7:
RETURN
maps8:
RETURN
maps9:
RETURN
maps10:
RETURN
maps11:
RETURN
maps12:
RETURN
maps13:
RETURN
maps14:
RETURN
maps15:
RETURN
maps16:
RETURN
loopever:
DO
LOOP
main_menu_loop:
DO
LOOP
RETURN
FUNCTION MakeABackground(X,Y)
LOAD IMAGE mediapath$(1,2),1
PASTE IMAGE 1,0,0
ENDFUNCTION
I'm not sure how the code you posted works, but I appreciate it all the same.
Quote: "I used to live in surry hills / newtown and south coogee plus manly mate "
Really? I'm up in the Blue Mountains now, but, strangely enough, I go for the Brisbane Broncos in the NRL!
[center]