Hi all,
Am still learning lots of the basic stuff in DB (slowly I just dont seem to have the time for these things)
Anyway I cant seem to get my avi's to move across the screen, with a bitmap in the background, without it leaving a blurring effect.
The only way i can do it is to continually clear the screen and reload the bitmap with every movement, which is hardly efficient.
My code is below
set display mode 800,600,16
sync on
sync rate 100
load bitmap "aztec.bmp",1
set current bitmap 1
load music "mix.mp3",1
loop music 1
copy bitmap 1,0 (if i remove this then cls clears my background)
load animation "jennifer2.mpg",1
load animation "jennifer2.mpg",2
place animation 1,50,100,150,200
place animation 2,50,400,150,500
gosub movement
end
movement:
animwidth=animation width(1)
animheight=animation height(1)
animwidth=animation width(2)
animheight=animation height(2)
loop animation 1
loop animation 2
sync on
while animation position x(1) < 270
while animation position x(2) < 270
cls
x=x+5
y=100
place animation 1,x,y,x+animwidth,y+animheight
rem the closest I can get to this working is to reload the bitmap
rem after cls command
cls
x2=x2+5
y2=400
place animation 2,x2,y2,x2+animwidth,y2+animheight
sync
endwhile
endwhile
return
As you can see I have two avi's moving at different heights on the
screen across from left to right at the same time. Any suggestions
on how I can clear the avi's after each movement and keep
my bitmap?
Thanks for any help
err help..