PDA

Click to See Complete Forum and Search --> : [VB6] Multiple data files to array (for tile games)


damasterjo
Feb 5th, 2006, 11:07 PM
This example will take 10 text files full of map information and assign them into one 3 dimensional array.

Mark Gambo
Feb 8th, 2006, 06:12 AM
Why wouldn't you Dimension the variable "Maps" as a String or Integer?


Dim maps(1 To 10, 1 To 15, 1 To 12) As String

damasterjo
Feb 8th, 2006, 01:10 PM
guess I didnt think of it, If your going to have less that 256 images and dont plan on using negative, set it as a byte! Good question though, I need to work on not leaving my variables as variants by default, it possible could slow down a game.