object:cancel()

类型 函数
返回值
修订版 发行版本 2024.3703
关键词 动画、补间、内插、取消
另请参阅 animation.cancel()
补间
animation.*

概览

取消 补间 对象。

语法

object:cancel()

范例

local object1 = display.newRect( 50, 50, 100, 100 )

-- Move the object
local newTween = animation.to( object1, { x=150, y=400 }, { time=5000 } )

-- Sometime later, cancel the tween
newTween:cancel()