Can you please tell me how to give events the collision of an isometric tile? I mean, how do I set that up? If you can give me the numbers, I'd really appreciate it.
Pic related are the basic shapes of my isometric tiles. The grid is 48*48.
View attachment 234624
For the left set of tiles:
top left
<polygon points='0.0,1.0 1.0,0.5 1.0,1.0' />
top right
<polygon points='0.0,0.5 1.0,1.0 0.0,1.0' />
middle left/right
<polygon points='0.0,0.0 1.0,0.0 1.0,1.0 0.0,1.0' />
bottom left
<polygon points='0.0,0.0 1.0,1.0 1.0,0.5' />
bottom right
<polygon points='0.0,0.0 1.0,1.0 0.0,0.5' />
For the right set of tiles:
top left
<polygon points='0.0,0.5 0.0,1.0 1.0,1.0 0.0,1.0' />
top right
<polygon points='0.0,0.0 1.0,0.5 1.0,1.0 0.0,1.0' />
bottom left
<polygon points='0.0,0.0 1.0,0.0 1.0,1.0 0.0,0.5' />
bottom right
<polygon points='0.0,0.0 1.0,0.0 1.0,0.5 0.0,1.0' />
Basically "0.0,0.0 is the top left of a tile while "1.0,1.0" is the bottom right of a tile