ClearWorld and Includes??

Blitz3D Forums/Blitz3D Programming/ClearWorld and Includes??

no, i think clearworld only clears the 3D "space" if i remember correctly. All variable values & non '3d' stuff should remain intact, which is not always a good thing.

The problem with clearworld is if you have a variable called "player" storing a mesh handle. After clearworld, the handle will still be set to say player=1238783 but the handle will be invalid as the media has been dumped.

Includes are simply (as far as the programmer is concerned) extensions of the main code at the exact point and order in which they are placed. Basically the compiler treats it as if the included code was all in one file.