flashing screen

BlitzMax Forums/BlitzMax Beginners Area/flashing screen

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.

Hi there,

I'm very new to BlitzMax and I am learning how to code in it from things on the internet, but it is very tough.

When I compile and test this, the screen flashes.


-


' -------------------- '
' Meltdown Source Code '
' Eric Vaughn 2006 '
' -------------------- '

' Initialize Window

Graphics 400, 300, 16

HideMouse

' Load Images

player:TImage = LoadImage("images/player.bmp")

' Draw Images

Cls

DrawImage(player, 10, 10)

' Main Loop

While Not KeyHit(KEY_ESCAPE)

' Draw Screen

Flip

Wend

ShowMouse


-


How do I stop the flashing?

Thanks.