![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Team445 |
I’m trying to tile a tilemap using GDScript. A function runs on the main scene.
I can’t figure out why the tiles don’t appear when the scene runs. Any suggestions?
func _generateGroundFloor():
groundFloor.clear()
var x = 0
var y = 0
for x in range(0, 1024, 16):
for y in range(0, 608, 16):
groundFloor.set_cell(x, y, 1)
print("(", x , ", ", y, ")")