|
-
Jul 1st, 2002, 11:09 PM
#1
Thread Starter
New Member
Tile Scrolling Questions
Ok, if any of you are familiar with Lucky's Tile Scrolling Tutorial, this will probably be fairly easy for you to awnser.
In the coding there is this part that generates a large, random map:
'Load the map array with random tiles
Randomize
For i = 0 To UBound(mbytMap, 1)
For j = 0 To UBound(mbytMap, 2)
mbytMap(i, j) = CByte(Rnd() * 3)
Next j
Next i
How can I edit this block of coding to instead load map data from a *.txt file with map data? IE, something like:
001G5
08392
589K6
3RD79
You dont have to give exact coding, just the theory on how to do it. Ive done a map loading function before that loaded map data into a game, but it doesnt apply here since I did it way too different than what I think this system can allow.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|