object:getIsPaused()

类型 函数
返回值 布尔值
修订 版本 2024.3703
关键词 动画、插值、插值、getIsPaused
另请参见 object:pause()
插值
animation.*

概述

如果插值已暂停,则返回布尔值true,否则返回false

语法

object:getIsPaused()

示例

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

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

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

-- Check if tween is paused
local isPaused = newTween:getIsPaused()
print( isPaused )  --> true