MCPcopy
hub / github.com/4ian/GDevelop / pauseTween

Method pauseTween

Extensions/TweenBehavior/TweenManager.ts:345–352  ·  view source on GitHub ↗

* Pause a tween. * @param identifier Unique id to identify the tween

(identifier: string)

Source from the content-addressed store, hash-verified

343 * @param identifier Unique id to identify the tween
344 */
345 pauseTween(identifier: string) {
346 const tween = this._tweens.get(identifier);
347 if (!tween || !tween.isPlaying() || tween.hasFinished()) {
348 return;
349 }
350 this._removeActiveTween(tween);
351 tween.pause();
352 }
353
354 /**
355 * Resume a tween.

Callers 3

pauseSceneTweenFunction · 0.45

Calls 5

_removeActiveTweenMethod · 0.95
getMethod · 0.65
isPlayingMethod · 0.65
hasFinishedMethod · 0.65
pauseMethod · 0.65

Tested by

no test coverage detected