var/icon/i=new()
var/n=1
for(var/j=0; j<=16; j+=1)
if(1)
var/t; if(j<10){t="000[j]"} else if(j<100){t="00[j]"} else {t="0[j]"}
i.Insert("[t].png","asd",1,n,0,0.33)
n+=1
sleep(1)
Problem description:
So my code just creates an animation and then stores it in my computer. It used to work for some pretty big animations like 500 frames but now it always crashes on about 20. What am I getting wrong??
Probably if () == false == crash
Twenty laps without sleep would never cause a crash
I've used a thousand laps in a tick and no problem
The limit here is 16 laps without sleep
Send more pieces of code