Currently Selected Tile (Types)

Blitz3D Forums/Blitz3D Beginners Area/Currently Selected Tile (Types)

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Well you have Dim grid.tile(5,5) I hope.

Then you convert the mouse position to a tile index.
Local mousetile.tile
mousetile=grid(mousex()/tilewidth,mousey()/tileheight)

Now mousetile points to the tile the mouse is over.
Print mousetile\letter