Hi all,
I want to retrieve the selected tile -record- (eg: clicked by mouse, with X and Y of mouse pointer) in an isometric map. How can I do this?



Example:

[pascal]
...

type
TIsoTile = record
image: integer;
zoffset: integer;
selected: boolean;
end;

...

procedure TForm1.DXDrawMouseDown(Sender: TObject; Button:
TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
IsoMap[ISOCoordX(x, y, isowidth, isoheight), ISOCoordY(x, y,
isowidth, isoheight)].image := 1;
end;
[/pascal]

Thanks.

PS: sorry for my english