#### Archived

This topic is now archived and is closed to further replies.

# isometrix, screen cursor

This topic is 6188 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

I''ve tried for a day or two to make the cursor overlay a map tile, by finding my mouse''s x,y the map offset, and my tile width height.. i''m about to throw my computer out the window. before i do that, could sombody help me out, and send me the math equation that calculates this? me and my computer would both greatly appreciate any help. I''m useing a 64x32 tile. thanks in advance guys. Even a broken clock is right twice a day. Grey

##### Share on other sites
Hi,

Not sure what you are trying to accomplish - or in what programming language for that matter ...

If your problem can be described as "on what tile did I click ?" than you can find a fast mathematical solution and demo program at http://eddysterckx.virtualave.net/progs.html

It''s in Delphi/pascal - but should be easy to convert.

Greetz,

Eddy Sterckx

##### Share on other sites
Yes, what i am looking for is did user click on a tile. i''ve got somewhat of a formula :

int sub = LY/32;
long blitX = LX/64*64+LY/16*32 - (sub*64);
long blitY = LY/16*16;

Where LX,LY are my loword, and highword on the mouse, and blitX, and blitY are my top-left coords for blitting. I looked over your pascal code.. unfortunately, i can''t read pascal. so it was greek to me.. either that or while i pulled out my hair, i pulled out brains too.. anyways i''ve been trying to do this on my own.. no books or anything.. and i''ve found out iso will kick your bootylicious seat if you''re not a math genious.. So thanks for the reply.. look forward to another..
-grey

Even a broken clock is right twice a day.
Grey

1. 1
Rutin
25
2. 2
3. 3
4. 4
JoeJ
18
5. 5

• 14
• 14
• 11
• 11
• 9
• ### Forum Statistics

• Total Topics
631757
• Total Posts
3002140
×