I want to make an image appear on a tile when clicked on, and then disappear when I click on a different tile and make it reappear on that clicked tile.
You can draw your image you want to appear on top of your tile and make it invisible using:
object.isVisible = false
When you touch the tile, then you can set the .isVisible flag to true and it will show. If you want some animation, you can use .alpha = 0 instead of .isVisible and use transition.to() to transition the .alpha to 1 for a fade in effect.
You can draw your image you want to appear on top of your tile and make it invisible using:
object.isVisible = false
When you touch the tile, then you can set the .isVisible flag to true and it will show. If you want some animation, you can use .alpha = 0 instead of .isVisible and use transition.to() to transition the .alpha to 1 for a fade in effect.