Ok i have a code that i made, it is supposed to make it so that when you get to certain cords on the map it loads the next level here is the code. i have also placed it in the main loop.
` next level
if X# => 19710 and X# =< 19720 and Z# => 4540 and Z# =<4610
loadmap("media/dungeon1.map",mapsize)
endif
now i know some of you are saying "well your problem is that you don't have a map to load in the beginning" not true i have this defined here at the beginning of the game.
here is that code. it is not in the main loop
` Current map
loadmap("media/dungeon.map",mapsize)
autocam off
also i attached my source code and media