Image Handles

Blitz3D Forums/Blitz3D Beginners Area/Image Handles

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.

Well, my english is BAD! =P

Trying to explain again..

I have a function that show the Main Menu, right?
And, my code looks like this

repeat
graphics 800,600,16,2
Main() ;function that calls the main menu

graphics 800,600,16,2
Load() ;Load images, sounds, etc
While not key hit(1)
wend
forever

When in the main menu i click in START GAME i have the following code
endgraphics
return

It means.. that i End my graphics (free everything, i think..) and after create a new graphics to load game images...

Ok, now i have the problem.. when START A GAME and hit Escape.. my game return to the main menu.. but when i click in START GAME again.. my images handles are switched.. (look at the top image).. i don't know why...

Easy to understand now?