Feature request, map dimension system variables
Displaying 1-3 of 3 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
Buckermann

Is it possible to get a system variable who holds the x and y dimensions of the currently loaded map?
Something like mapsize.x and mapsize.y would be neat.
Right now I have to define my own variable manually in each map start function.
And I'm lazy. I would prefer if Vecna would do my work :)

Posted on 2004-07-04 11:59:24

Omni

Can you do a looped GetTile() until Verge stops returning tile numbers, or will that cause an error?

Posted on 2004-07-06 02:23:04

Buckermann

Good question. I'll try it.

Edit: Tested Omnis suggestion.
Verge returns zero if you are using GetTile() "outside" the map. Problem is that zero is also the index number for the very first tile in the VSP.
So, to get the map dimension you have to place a "special" tile, let's say number 69, at the end of the first row, and at the end of the first column, and check specifically for this tile number. AIn't the best solution, but it works until we get map dimension system variables (hopefully).

Posted on 2004-07-06 05:00:11 (last edited on 2004-07-06 13:44:43)


Displaying 1-3 of 3 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.