Thralni Posted August 20, 2006 Share Posted August 20, 2006 In what form is the outdoor's section coordinates returned? Is it something like "0,0" or is it the two numbers added up (in this exmaple "0") or is it something different? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Lazarus. Posted August 20, 2006 Share Posted August 20, 2006 The first section (0,0) is number 0. (1,0) is number 1, (2,0) is 2 etc. Once its gone all through the (x,0) row, it starts with (x,1) row. I hope that wasn't too confusing. Basically it starts with 0 in the NW corner. Then keeps adding one as it goes east, and restarts at the west each time. I tested this in every outdoor section of my 3x3 scenario. Quote Link to comment Share on other sites More sharing options...
Thralni Posted August 20, 2006 Author Share Posted August 20, 2006 So, if I understand you correctly, in a world of 5x5, the sections (4,1) and (4,2) are respectively 17 and 18, is that correct? Quote Link to comment Share on other sites More sharing options...
Fort Posted August 20, 2006 Share Posted August 20, 2006 No, I think it would be 21 and 22. In a world of w width, the outdoor section (x,y) is represented by the number (x * w + y). At least that is how I remember it. Quote Link to comment Share on other sites More sharing options...
Drakefyre Posted August 20, 2006 Share Posted August 20, 2006 Wouldn't it be 9 and 14? Quote Link to comment Share on other sites More sharing options...
Lazarus. Posted August 20, 2006 Share Posted August 20, 2006 Actually I think its the other way around (x + (y * w)), so Drakey is right. Quote Link to comment Share on other sites More sharing options...
Thralni Posted August 20, 2006 Author Share Posted August 20, 2006 Oh wit, I wrote down the numbers from northg to south, not west to east. Thanks. An other thing cleared up! Quote Link to comment Share on other sites More sharing options...
Fort Posted August 21, 2006 Share Posted August 21, 2006 Wow, that is incredibly counterintuitive. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.