|
Post by u9 on Jun 27, 2007 12:58:30 GMT -5
Of course, i'm not sure it is supose to. But try out this example. Works like a charm. You first seel level 1, then level 2, then back to level 1.
Now try and uncomment the graphics.ClearImage command inside the procedure. The second level doesn't show any graphics, and the third call to load even crashes. It crashes because i try and load level 1 again. It doesn't seem to like it if i call level 1 again after ClearImage'ing it.
P.s. There is missing a way to remove loaded maps.
Dim map
graphics.initialize key.initialize
load( "1.map" ) system.pause 500 key.wait load( "2.map" ) system.pause 500 key.wait load( "1.map" ) system.pause 500 key.wait
key.terminate graphics.terminate
Sub load( file ) map = graphics.mapload( file ) graphics.clear graphics.mapupdate graphics.setimage map graphics.display ' graphics.clearimage map End Sub
|
|
|
Post by Guilect on Jun 27, 2007 16:19:02 GMT -5
I thought you didn't use maps looking into it.
|
|
|
Post by u9 on Jun 27, 2007 16:28:20 GMT -5
Yeah, but i had to make a demo for oddchild, so here we are
|
|