Tiles In Terrain
Blitz3D Forums/Blitz3D Programming/Tiles In Terrain
| ||
How I know what tile of terrain I'm with the mouse? |
| ||
can you be more specific? |
| ||
Yeah!, I'll Try! With the camerapick, I want to know what tile of terrain is picked by mouse. |
| ||
is this a Blitz terrain entity, or your own custom tile grid terrain? |
| ||
You probably want to subtract the position of the corner of your terrain (whichever corner you consider to be (0,0)) from (PickedX(), PickedY()), then divide by the size of each grid tile, rounding down. This gets a lot more fun if you've rotated the grid! |
| ||
=D Thanks, I'll try this =D. |