object:pause()

Type Function
Return value none
Revision Release 2024.3703
Keywords animation, tween, interpolation, pause
See also object:resume()
animation.resume()
animation.pause()
Tween
animation.*

Overview

Pauses a Tween object.

Syntax

object:pause()

Example

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()