Loading From File

Blitz3D Forums/Blitz3D Beginners Area/Loading From File

Blitz keeps track of 'how many' instances there are behind the scenes so you don't have to worry.

Every time NEW is called, another is created.

To Load in I would suggest 'something similar to'

	While Not Eof
	Level.LevelAssets = New LevelAssets 
	Level\xpos = ReadInt( File )
	Level\zpos = ReadInt( File )
	Level\Rotation = ReadInt( File )
        Wend