Jump to content

Killing a Tween


jake.caron
 Share

Recommended Posts

Hi All,
I'm simply trying to kill/destroy a tween so it stops as soon as I call the method. I have tried the following code:
 

this.tweens.add({targets: this.titleGraphic, scaleX: 1, scaleY: 1, duration: 1000, ease: Phaser.Math.Easing.Back.Out});
this.tweens.killTweensOf(this.titleGraphic);

However, that does not seem to work. this.tweens.killAll(); also does not work. "this" is a reference to the current scene.

Thanks,
Jake.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...