I been searching all over the Forums,Manual,Google and YouTube for this one simple answer.
How do I erase a tile from a tilemap when I am in game by clicking on it with the mouse?
Convert an X or Y layout co-ordinate in to the corresponding tile number in the tilemap. For example, this can be used to get the tile position under the mouse. "
Am I on the right track?
Develop games in your browser. Powerful, performant & highly capable.
From the manual:
When using tiles in the object's conditions, actions and expressions, positions are generally given in tiles instead of layout co-ordinates. You can convert between tile positions and layout co-ordinates using the PositionToTileX/Y and TileToPositionX/Y expressions.
Basically the tile you want is the x,y coordinate of that tile divided by the tile size.
Yeah I figured it out. ty