New function: Single Surface Drawing.

BlitzMax Forums/BlitzMax Programming/New function: Single Surface Drawing.

I've got 189+ tiles here and the wrong image frames are being drawn. Looks to be one or two tiles off in all instances.

'imgTiles:TImage = LoadAnimImage("gfx/tiles/" + tmpPath$, 16, 16, 0, 189 * tmpFrames, MASKEDIMAGE|FILTEREDIMAGE)
imgTiles:TAnimImage = TAnimImage.Load("gfx/tiles/" + tmpPath$, 16, 16, 0, 189 * tmpFrames, MASKEDIMAGE|FILTEREDIMAGE)

If map(x, y, 1) <> -1 Then imgTiles.Draw Int((a * 24) - scrollX), Int(b * 16), 16, 16, map(x, y, 1)
'DrawImage imgTiles, Int((a * 16) - scrollX), Int(b * 24), map(x, y, 1)
My tile image is 144x336
Edit: You also left off the Type and field info in your first post.