i have an 8x8 image tile to fill a tilemap that is 30x50(portrait) size. i fill the tilemap using a for loop. it works if you want it instantaneous.
for x in range(0, size.x):
for y in range(0, size.y):
tileMap.set_cell(x, y, cellIndex)
but what if i want to see the cellIndex filling the screen gradually? i did try using the yield(). it does work but if the timer is set to 0.01 to fill the screen faster, there is no difference between a timer set to 0.1 and 0.01. or even 0.00001.
for x in range(0, size.x):
for y in range(0, size.y):
tileMap.setcell(x, y, color)
yield(gettree().create_timer(0.1), "timeout")
what can i do to gradually fill the tileMap with cell that is gradually but can fill it faster using the yield()?