Im making a radar for my RTS and having trouble.
I create a blank image and then draw, and switch back to back buffer but nothing apears on the screen. Here are my two functions.
This ones outside of the main loop
;Creates and manages radar
Function CreateRadar()
radar = CreateImage(radarwidth,radarheight)
End Function
This ones inside the main loop but after update world and render world
;updates radar
Function UpDateRadar()
SetBuffer ImageBuffer(radar)
Color 0,0,0;make radar black
Rect 0,0,radarwidth,radarheight,1
Color 255,255,255;reset color back to white
SetBuffer BackBuffer()
DrawImage radar,10,578
End Function
Please help thanks
ben
I create a blank image and then draw, and switch back to back buffer but nothing apears on the screen. Here are my two functions.
This ones outside of the main loop
;Creates and manages radar
Function CreateRadar()
radar = CreateImage(radarwidth,radarheight)
End Function
This ones inside the main loop but after update world and render world
;updates radar
Function UpDateRadar()
SetBuffer ImageBuffer(radar)
Color 0,0,0;make radar black
Rect 0,0,radarwidth,radarheight,1
Color 255,255,255;reset color back to white
SetBuffer BackBuffer()
DrawImage radar,10,578
End Function
Please help thanks
ben