【发布时间】:2015-05-11 03:54:34
【问题描述】:
我正在尝试在游戏中投掷星星。 我可以用
移动星星bulletTransition[bulletCounter] = transition.to(bullets[bulletCounter], {x=-250, time=2000, onComplete=function(self)
if(self~=nil) then
display.remove(self)
end
end})
我知道我可以旋转东西
transition.to( bullets[bulletCounter], { rotation = bullets[bulletCounter].rotation-360, time=2000, onComplete=spinImage } )
但是如何让平移和旋转同时发生呢?
【问题讨论】: