Say I want a layer with multiple states. Can I create a loop to create these states quicker?
I tried but it didn't make it work, I assume it's because it treats "i" as the name of a state
layer = new Layer
layer.states = 
for i in [0..5] layer.states[i] = y: i * 50 layer.onTap -> layer.stateCycle()