# Making tween restart

**URL:** <https://phaser.discourse.group/t/making-tween-restart/2317>\
**Category:** Phaser 3\
**Created:** [May 2, 2019, 10:55am UTC](https://phaser.discourse.group/t/making-tween-restart/2317 "2019-05-02T10:55:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Faizan\_Ali](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/faizan_ali/32/964_2.png) [@Faizan\_Ali](https://phaser.discourse.group/u/Faizan_Ali)\
**Post date:** [May 2, 2019, 10:55am UTC](https://phaser.discourse.group/t/making-tween-restart/2317/1 "2019-05-02T10:55:45Z")

</div>

Hi there, I have a small circle that moves when you click on it however I am having trouble making the circle move back when you click on the circle again. Here is the code:

Menu.switch = this.add.circle(25,25,10,0xffffff).setInteractive();

```
    var tween = this.tweens.add({
        targets: Menu.switch,
        x: 60,
        ease: 'Power2',
        paused: true,
    });

    Menu.switch.on("pointerdown", function () {
        tween.play();
    });

```

I want to restart the tween when clicked on again.

---

<div class="post-metadata">

**Author:** ![jackfreak](https://avatars.discourse-cdn.com/v4/letter/j/919ad9/32.png) [@jackfreak](https://phaser.discourse.group/u/jackfreak)\
**Post date:** [May 2, 2019, 9:05pm UTC](https://phaser.discourse.group/t/making-tween-restart/2317/2 "2019-05-02T21:05:14Z")

</div>

Hi @Faizan_Ali, tween.restart() should do the trick.

```javascript
   Menu.switch.on("pointerdown", function () {
        tween.restart();
    });

```
