Ok I have set up a few loops in my game, one which controls the intro and exits when a value is set. Immediatley after that loop end I free the intro image - then the program goes on to the next loop.
1) The image is not freed after the loop, even when I put freeimage.
2) The second loop should be the only thing running, ie when the first loop is exited and the programs starts going through the other loop, that should just loop and loop until a value is set for exit. Yes or No?
3)I dont know if 2 was explained correctly :confused:
example
loop1 for intro
[CODE]
;lop1 for intro
repeat
;code here for intro
exityn = 1 ;< to exit the loop
until exityn=1
freeimage intro
cls
; loop2 for Mode Select
repeat
mode select code here
exitm = 1
until exitm = 1
[/CODE]
Now Once the program is in loop 2, loop one should not be running. Yes or No?
Also where I free the image after the first loop, If I unmask the modelect screen, which is in the second loop, I can still see the intro image in the background. Why?
[EDIT] Im using B+ [/EDIT]
1) The image is not freed after the loop, even when I put freeimage.
2) The second loop should be the only thing running, ie when the first loop is exited and the programs starts going through the other loop, that should just loop and loop until a value is set for exit. Yes or No?
3)I dont know if 2 was explained correctly :confused:
example
loop1 for intro
[CODE]
;lop1 for intro
repeat
;code here for intro
exityn = 1 ;< to exit the loop
until exityn=1
freeimage intro
cls
; loop2 for Mode Select
repeat
mode select code here
exitm = 1
until exitm = 1
[/CODE]
Now Once the program is in loop 2, loop one should not be running. Yes or No?
Also where I free the image after the first loop, If I unmask the modelect screen, which is in the second loop, I can still see the intro image in the background. Why?
[EDIT] Im using B+ [/EDIT]