Hello, i try to create a 2D game, i use some animations (.avi or wmv) and sprites, images, music etc
mi code is something like this
any ideas?
gx = 1024
gy = 768
set display mode gx,gy,32,1
sync on
sync rate 24
global level = 0
global first = 0
global levelend = 0
do
if level = 0
level1()
endif
sync
loop
function level1()
if first = 0
load image "imagenes\100.png",30
sprite 30,0,0,30
hide sprite 30
load animation "example.avi",2
play animation 2,0,0,gx,gy
loop animation 2
first = 1
endif
if levelend = 1
stop animation 2
stop music 1
delete animation 2
delete music 1
delete sprite 30
delete image 30
endif
endfunction
Hello