in the following code i want to delete the splashScreen and draw the hud. what it does now is load the splashscreen and after 7 seconds it draws the HUD but it does not delete the splashscreen image previously loaded:(
here is the code:
graphics 640,480,0,2 ;ponemos el modo grafico en 640x480 con profundidad 0 modo 2 (ventana)
setbuffer backbuffer()
const BufferWidth=640, BufferHeight=480
;global images
;global mouseImage=loadimage("punteroMouse.bmp")
splashScreen=loadimage("splashScreen.bmp"); pantalla de bienvenida
hud_image=LoadImage("hud.png") ;el HUD
;ahora creamos una imagen negra donde dibujaremos
global pictureBuffer=createimage(bufferwidth,bufferheight)
;musica de fondo
musicaFondo=playmusic("musicaFondo.mp3")
;pantalla de bienvenida
drawimage(splashScreen,0,0) ;parte desde la posicion 0,0
flip
Delay 7000
freeimage splashScreen
splashScreen=0
Text 230,240,"Entrando al level 1"
Flip
Delay 2000
DrawImage(hud_image,0,350)
Flip
;Stop ;solo de prueba
please help me.
here is the code:
graphics 640,480,0,2 ;ponemos el modo grafico en 640x480 con profundidad 0 modo 2 (ventana)
setbuffer backbuffer()
const BufferWidth=640, BufferHeight=480
;global images
;global mouseImage=loadimage("punteroMouse.bmp")
splashScreen=loadimage("splashScreen.bmp"); pantalla de bienvenida
hud_image=LoadImage("hud.png") ;el HUD
;ahora creamos una imagen negra donde dibujaremos
global pictureBuffer=createimage(bufferwidth,bufferheight)
;musica de fondo
musicaFondo=playmusic("musicaFondo.mp3")
;pantalla de bienvenida
drawimage(splashScreen,0,0) ;parte desde la posicion 0,0
flip
Delay 7000
freeimage splashScreen
splashScreen=0
Text 230,240,"Entrando al level 1"
Flip
Delay 2000
DrawImage(hud_image,0,350)
Flip
;Stop ;solo de prueba
please help me.