Change X position with condition
I wrote a simple script, but it doesn't work. In the composition there is one circle with a position of 0, 0. I expect the circle to go down 10 pixels and then change the X position to a random one and go down 10 pixels again. But the condition of the IF loop does not work. The circle just keeps going down and doesn't change position. What did I do wrong?
if(position[1]<=-10){ [position[0],position[1]+Math.round(time)] } else { [random(width),-10] }
