【发布时间】:2014-06-04 09:33:20
【问题描述】:
如何在执行时更改转换的时间值?例如,我让对象“cesta”以 4000 毫秒的时间从左向右移动,然后出于某种原因,我想更改时间值以更快地移动它。
function createCesta()
...
transition.to(cesta, {time = 4000, x = screenW + 110})
...
end
function touchScreen(event)
if event.phase == "began" then
end
if event.phase == "ended" then
--change the time value from here "from 4000 to 2000"
end
end
【问题讨论】:
标签: lua 2d coronasdk transition