Hi I just got BlitzPlus yesterday. It's awesome!
I see FreeImage removes it from memory, but how do I remove an image from the screen? This is what I have so far:
; ManHunt game
Graphics 640,480
Global sndHandsUp
SetBuffer BackBuffer()
;;;;;;;;;intro stuff;;;;;;;;;;;;;;;;;;;;;;;
BeginPic=LoadImage( "Pics\setpic.bmp" )
TitleText=LoadImage("Pics\copspic.bmp")
sndHandsUp=LoadSound("sounds\policebullhorn.wav")
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
chnSurrounded=PlaySound ( sndHandsUp )
startTime=MilliSecs()
pauseTime=5000
While MilliSecs() < startTime + pausetime
DrawImage BeginPic, 0, 0
DrawImage TitleText, 0, 0
Flip
Wend
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; don't need these anymore / How to remove from screen?
DrawImage BeginPic, 700, 0
DrawImage TitleText, 700, 0
FreeImage BeginPic
FreeImage TitleText
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
While Not KeyHit(1)
; now we can place the game tiles on screen
Flip
Wend
End
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Thanks for helping.
I see FreeImage removes it from memory, but how do I remove an image from the screen? This is what I have so far:
; ManHunt game
Graphics 640,480
Global sndHandsUp
SetBuffer BackBuffer()
;;;;;;;;;intro stuff;;;;;;;;;;;;;;;;;;;;;;;
BeginPic=LoadImage( "Pics\setpic.bmp" )
TitleText=LoadImage("Pics\copspic.bmp")
sndHandsUp=LoadSound("sounds\policebullhorn.wav")
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
chnSurrounded=PlaySound ( sndHandsUp )
startTime=MilliSecs()
pauseTime=5000
While MilliSecs() < startTime + pausetime
DrawImage BeginPic, 0, 0
DrawImage TitleText, 0, 0
Flip
Wend
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; don't need these anymore / How to remove from screen?
DrawImage BeginPic, 700, 0
DrawImage TitleText, 700, 0
FreeImage BeginPic
FreeImage TitleText
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
While Not KeyHit(1)
; now we can place the game tiles on screen
Flip
Wend
End
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Thanks for helping.