Isometric get tile from mouse Cords
Isometric get tile from mouse Cords
Isometric get tile from mouse Cords
Isometric get tile from mouse Cords
Isometric get tile from mouse Cords
Isometric get tile from mouse Cords Isometric get tile from mouse Cords Isometric get tile from mouse Cords Isometric get tile from mouse Cords Isometric get tile from mouse Cords Isometric get tile from mouse Cords Isometric get tile from mouse Cords Isometric get tile from mouse Cords
Isometric get tile from mouse Cords Isometric get tile from mouse Cords
Isometric get tile from mouse Cords
Go Back  Xtreme Visual Basic Talk > > > Isometric get tile from mouse Cords


Reply
 
Thread Tools Display Modes
  #1  
Old 11-19-2010, 03:03 AM
Mikekan13 Mikekan13 is offline
Newcomer
 
Join Date: Sep 2010
Posts: 6
Default Isometric get tile from mouse Cords


Ok so I used passels code to find the coordinates of my iso map but the problem is that I am setting my grid up slightly different. he does it with the 0,0 tile being the first left tile. I want to start with the top middle tile as this is the tile you would draw first in a game.
Reply With Quote
  #2  
Old 11-19-2010, 04:38 AM
surfR2911 surfR2911 is offline
Contributor
 
Join Date: Oct 2009
Posts: 719
Default IsoGrid Tile Number Detection on MouseDown Code

Did you look at the original thread where there passel code attachment came from?

IcePlug's attachment in post #11 of that thread deals with the case where the top middle tile is the 0,0 tile.
His code identifies tiles moused down on by X,Y value, so I updated his project slightly to identify each tile by a tile number (but left in Iceplug's X.Y identification code commented out) and attached it below.

Also:
You didn't mention how you wanted the other tiles ordered/numbered/sequenced so I did the tile detection number code as a big If..ElseIf..EndIf statement (even though it's not the most efficient way to coding such things) so you can easily modify the tile numbering system to whichever way you want .
Attached Files
File Type: zip IsoFormGrid_MouseDown_Detection.zip (3.0 KB, 15 views)

Last edited by surfR2911; 11-19-2010 at 04:53 AM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Isometric get tile from mouse Cords
Isometric get tile from mouse Cords
Isometric get tile from mouse Cords Isometric get tile from mouse Cords
Isometric get tile from mouse Cords
Isometric get tile from mouse Cords
Isometric get tile from mouse Cords Isometric get tile from mouse Cords Isometric get tile from mouse Cords Isometric get tile from mouse Cords Isometric get tile from mouse Cords Isometric get tile from mouse Cords Isometric get tile from mouse Cords
Isometric get tile from mouse Cords
Isometric get tile from mouse Cords
 
Isometric get tile from mouse Cords
Isometric get tile from mouse Cords
 
-->