I got this to work:
It just change the tiles colour if the value of the array=0 at same tile position in the array using positiontotileX(mouse.x)&positiontotiley(mouse.y) And its bugged when condition on "every tick" it just colours a big square in the tilemap.
But now I would need to do the contrary, set an array value when tile=0 (colour)
And do I have to always rely on a specific position in this case (mouse.x,y) to change an array value? I would like to do like:at (tile.x,y) which i can’t figure out how.
Also any tutorials online on how to use tilemaps with arrays? please