These tiles should be separated (have a margin of space, not be sticked to the others around and this only applies when the letters are in the box) to fit into the hud i'm gonna incorporate into the game.
This is the code:
func _ready():
randomize()
for i in range(4):
for j in range(4):
var tile:LetterTile = Letter.instance()
$LetterBox.add_child(tile)
tile.connect("tile_clicked", self, "on_tile_clicked", [tile])
tile.position = Vector2(i * TILESIZE, j * TILESIZE)
tile.box_position = tile.position
