I'm working on a level editor for a platforming game, and I'm trying to simplify the terrain editing by using the TileMap object, as opposed to placing individual sprites.
The problem is: It's not working. My code is as follows:
Mouse | On any click ........... | Tile map Set tile (mouse.x, mouse.y) to tile 1 (normal)
AND
Mouse | Cursor is over Tile Map
I'm assuming my problem is because the tile x and y aren't the same as the mouse x and y, but I don't know how to find a workaround. Any ideas?