有没有办法防止角色同时开始?我试过这个,但即使我添加了延迟,每个角色仍然会在动画开始的那一刻开始动作。
--runningPG1.. runningPG5 have attached a sprite and coordinates
arrayPg = {runningPG1, runningPG2, runningPG3, runningPG4, runningPG5}
for key, value in pairs(arrayPg) do
transition.to(value, { y = value.y+350, time = 1500})
transition.to(value, { x = value.x-740, time = 2500, delay = 1550 })
transition.to(value, { y = value.y+825, time = 2500, delay = 4100 })
end