When I press a button I want three vector shapes to change color to indicate an action has begun, what is the best way to do so?
I create my shapes in a for loop then when button is released this is called
function doSearchAndChangeColors()
shapes[1]:setFillColor(14,29,84,255)
shapes[2]:setFillColor(14,29,84,255)
shapes[3]:setFillColor(14,29,84,255)
end
But the odd thing is, sometimes the 3rd shape doesn’t change color so I tried this:
function doSearchAndChangeColors()
for i = 1, 3 do
shapes[i]:setFillColor(14,29,84,255)
end
end
But after a while it stop changing color on the 3rd shape again.
[import]uid: 65840 topic_id: 35849 reply_id: 335849[/import]