fullscreen graphism problem

Blitz3D Forums/Blitz3D Beginners Area/fullscreen graphism problem

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

You arent clearing the background each frame, so you see the redrawn graphic as well as the previous ones. Use the Cls command in place of the SetBuffer command. Place SetBuffer outside of the loop. like so:
Graphics 800, 600
SetBuffer BackBuffer()

While Not KeyHit(1)
	Cls
	Color 255, 0, 0
	Text MouseX(), MouseY(), "Test"
	Flip
Wend
End
Blitz does not automatically clear the buffer when you set buffers. This allows you more control over when and how it is cleared. The reason for the flicker is because the backbuffer (invisible) is drawn to and then flipped to become the frontbuffer (viewable). The items drawn to each buffer may and probably will differ, so your screen is alternating between two different images.