Wednesday, October 19, 2022
HomeGame DevelopmentThe right way to pause and resume tween? - Cocos Creator

The right way to pause and resume tween? – Cocos Creator


i wish to pause tween and when wanted wish to resume it relatively than cease and begin over once more , is there any method to take action?


please check with this : cc.TweenSystem.occasion.ActionManager.pauseTarget(…)

   /**
         * @en Pauses the goal: all operating actions and newly added actions shall be paused.
         * @zh 暂停指定对象:所有正在运行的动作和新添加的动作都将会暂停。
         * @technique pauseTarget
         * @param {Node} goal
         */
        pauseTarget(goal: Node): void;



1 Like

my want is as following :
tween1 operating
clicked on object
tween1 paused
tween2 began (identical node)
when tween2 end tween1 resumes from the place it was paused

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments