Hi all,
Whats wrong with this code?
The movie plays, although it stutters at start, but it gets all blocky!
This doesn't happen in mediaplayer or *cough*blitz3d*cough*
moviefile$=cl$()
moviefile$="d:\movies\mydivxmovie.avi"
set display mode 800,600,32
load animation moviefile$,1
x# = 0
y# = 0
mw#=animation width(1)
mh#=animation height(1)
new_width=800
scale# = new_width / mw#
new_height=mh#*scale#
rem new_height=new_height+mh#
starty=600-new_height
starty=starty/2
play animation 1,0,starty,800,starty+new_height
repeat
sleep 1
if joystick fire a() then pause animation 1
if joystick fire b() then resume animation 1
until joystick fire d() or escapekey()
stop animation 1
end
Am i doing something wrong here?
Dont kill me for being new to dbpro
Regards, Cloak.