|
||||||||||||||||||
Add Forum to Favorites | Send Topic To a Friend | View Forum FAQ | Track this topic |
Last Thread Next Thread ![]() |
| Isometric 'n' Hexagonal Maps Part I |
|
![]() Dolamite Member since: 1/15/2001 From: USA |
||||
|
|
||||
| This is a great article, but I am a bit unclear as to the order of operations in these equations: PlotX=MapX*Width+(MapY AND 1)*(Width/2) PlotY=MapY*HeightOverLapping-YOffset I'm pretty sure I know what they are : PlotX = (MapX*Width) + ( (MapY AND 1) * (Width / 2) ) PlotY = (MapY * HeightOverLapping) -YOffset but if anybody could confirm that, I would appreciate it. Thanks! |
||||
|
||||
![]() Myopic Rhino Staff Member since: The dawn of time
From: Temecula, CA, United States |
||||
|
|
||||
| Yeah. That's correct. |
||||
|
||||
![]() delphiro Member since: 12/18/2001 From: Netherlands |
||||
|
|
||||
| Great article! I hope you will write a sample programme someday! Thanks for your work, Rob |
||||
|
||||
![]() Anonymous Poster |
||||
|
||||
| I hope someone reads this and can help me.... i can't get the mouse correct. I do like the article sais but it won't get the right tile.....please someone help me /Keba |
||||
|
||||
![]() Programmer16 GDNet+ Member since: 1/31/2003 From: Onondaga, MI, United States |
||||
|
|
||||
| Is it just me, or is the mouse coordinates wrong for this tutorial? There isn't a point at which the x coordinate is increased (RegionDX is either set to -1 or 0. There is no 1.) |
||||
|
||||
![]() Holland Member since: 1/28/2008 |
||||
|
|
||||
| Can anyone confirm that the algorithm for plotting out tiles works? i'm trying with an 80x80 image, the rhombus takes up the lower 80x40 of the image. i can not get them to space out correctly using this algorithm...unless i'm just doing something wrong (which is 110% possible). I'd be glad to send me code to whomever to have a look. I'm using C++ and DirectX9. thanks. also...if anyone can explain this a little better or something, i'm kind of guessing as to what PlotX, PlotY, Height, Width, etc are.... I'm using a 2D array of sprites...each sprite has a D3DXVECTOR3 position an unsigned int for height and width...and a D3DXVECTOR3 center (center shouldn't matter...i'm drawing it based on its position) i have 2 #defines at the top for X and Y of the map...right now i'm just trying to do 5x5 (using the setup in this tutorial)...so i have my 2D array of Sprites declared like: Sprite map[MAP_X][MAP_Y] sorry this is a bit broken up and hard to read...it's 6am and i've been trying to figure out what's wrong for quite some time now.. it's almost seeming like for some reason it thinks my image is larger than it is or something. if anyone can help let me know...i'll email you my code so you can take a look at it or whatever. i'm using Visual Studio 2005...but i can just send the CPPs or whatever. |
||||
|
||||
All times are ET (US)![]() |
Last Thread Next Thread ![]() |
|