loops, exiting and freeing images ?

Blitz3D Forums/Blitz3D Beginners Area/loops, exiting and freeing images ?

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.

I think I have it, you needed 2 cls.

One to clear the backbuffer.
Then flip
Then another to clear the backbuffer again.

Graphics3D 800,600,32
SetBuffer BackBuffer()

image=LoadImage("space08.png")

exit1=False
exit2=False

DrawImage image,0,0
Flip


Repeat

If KeyHit(57) Then exit1=True

Until exit1=True

FreeImage image
Cls
Flip
Cls


Repeat

If KeyHit(57) Then exit2=True

Until exit2=True