Array of Images?

BlitzMax Forums/BlitzMax Programming/Array of Images?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

This tweaked version of your code builds without any errors.
SuperStrict

Const NumTiles:Int=254
Global gfxTile:TImage[NumTiles]
Local BgndImage:TImage =LoadImage("Background.bmp")
DrawImage BgndImage,0,0
For Local g:Int = 1 To 10
	gfxTile[g]=CreateImage(32,32)
	GrabImage gfxTile[g],(g*40),10
	DrawImage gfxTile[g],(g*40),200
Next

Don't see any reason why you can't make gfxTile an array of images.
But you need to specify Type for BgndImage too... (perhaps it was that line it was complaining about after you changed your gfxTile array).

:-)