Hello, I am currently a new user of darkbasic pro and it is giving me quite a problem.
Can someone please take a look at my code and see what I am doing wrong?
Rem Project: Project Eden
Rem Created: Thursday, December 23, 2010
Rem ***** Main Source File *****
Sync on
Sync Rate 60
set display mode 1280,720,32
Load Image "menu\titlexf.png", 1, 1
Load Image "menu\start here.png", 2, 1
Load Image "menu\start here2.png", 3, 1
Load Music "music\Omen.mp3", 1
Load Sound "music\X1.wav", 1
loop Music 1
do
paste image 1, 0, 0
If Mousex() > 80 and Mousex() < 80 + Image Width (3) and Mousey() > 500 and Mousey() < 500 + Image Height(3)
Paste Image 3, 80, 500, 1
If Mouseclick()=1
stop music 1
Play Sound 1
goto Game:
Endif
Else
Paste Image 2, 80, 500, 1
Endif
loop
sync
Game:
Sync off
Print "Game Running Sucessful"
Wait Key
'create some variables
Width = 1280
Height = 720
X = 1280
Y = 720
'initialize the program
set display mode 1280,720,32
HIDE MOUSE
DISABLE ESCAPEKEY
'modify the following line with the appropriate filename
LOAD ANIMATION "movie\X01.avi", 1
'get resolution of the movie
Width = ANIMATION WIDTH(1)
Height = ANIMATION HEIGHT(1)
X = 320 - Width / 2
Y = 240 - Height / 2
'play the animation
PLAY ANIMATION 1, X, Y, X + Width, Y + Height
'wait for keypress
WAIT KEY
'remove the movie from memory
DELETE ANIMATION 1
Show Mouse
Sync Rate 60
set display mode 1280,720,32
Load Image "images\001.png", 4, 1
Load Music "music\Bonds of Sea and Fire.mp3", 2
Loop Music 2
Play Music 2
paste image 4, 0, 0
sync
wait key
end
Also I have tried many video codec's none seem to work...I do get audio though :/