freeimage not working :(
Blitz3D Forums/Blitz3D Programming/freeimage not working :(
| ||
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. |
| ||
You are deleting the Image, but you are not clearing (cls) the backbuffer. You cannot depend on the old image being there, but equaly you cannot depend on it not being there. I imagine that the HUD is appearing Over (in) the splash screen? |
| ||
yep, the HUD is over (in) the splashscreen btw, what is the command to clear the image? |
| ||
;set ClsColor to red ClsColor 255,0,0 ;set current drawing buffer to the color set by the ClsColor command Cls |
| ||
excellent! it is now working :P i can continue :P many thanks! B! |