# This.tweens.timeline

**URL:** <https://phaser.discourse.group/t/this-tweens-timeline/13212>\
**Category:** Phaser 3\
**Created:** [April 30, 2023, 11:23am UTC](https://phaser.discourse.group/t/this-tweens-timeline/13212 "2023-04-30T11:23:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kara.m](https://avatars.discourse-cdn.com/v4/letter/k/9dc877/32.png) [@kara.m](https://phaser.discourse.group/u/kara.m)\
**Post date:** [April 30, 2023, 11:23am UTC](https://phaser.discourse.group/t/this-tweens-timeline/13212/1 "2023-04-30T11:23:30Z")

</div>

hi  
when i run this code:

```javascript
archiveWord(action) {
    var self = this;
    let index = Phaser.Math.RND.pick(
      [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].filter(
        (i) => !self.o.working_children.includes(i)
      )
    );
    self.o.working_children.push(index);
    action.sprite.setDepth(0);
    var word_timeline = this.tweens.timeline({
      tweens: [
        {
          targets: action.sprite,
          props: {
            x: this.getRandomInt(
              maps[this.level].archive_point.x - 25,
              maps[this.level].archive_point.x + 25
            ),
            y: this.getRandomInt(
              maps[this.level].archive_point.y - 25,
              maps[this.level].archive_point.y + 25
            ),
          },
          duration: 200,
          onStart() {
            //console.log("start 1");
          },
          onComplete() {
            //console.log("complete 1");
          },
        },
        {
          targets: action.sprite,
          props: {
            rotation: this.getRandom(0, 3.14),
            scale: "-=" + this.getRandom(0.5, 0.7),
          },
          duration: 200,
          onStart() {
            //console.log("start 2");
          },
          onComplete() {
            var children_timeline = self.tweens.timeline({
              tweens: [
                {
                  targets: self.o.children[index],
                  props: {
                    x: action.sprite.x,
                    y: action.sprite.y,
                  },
                  duration: 1000,
                  onStart() {},
                  onComplete() {},
                },
                {
                  targets: [action.sprite, self.o.children[index]],

                  x:
                    maps[self.level].house_point.x + self.getRandomInt(-20, 20),
                  y:
                    maps[self.level].house_point.y + self.getRandomInt(-30, 60),
                  duration: 2000,
                  onStart() {},
                  onComplete() {
                    action.sprite.setVisible(false);
                    const child_index = self.o.working_children.indexOf(index);
                    if (child_index > -1) {
                      self.o.working_children.splice(child_index, 1);
                    }
                  },
                },
              ],
            });
          },
        },
      ],
    });
  }

```

i have error and i dont know when its working in 2 weeks ago, thats error for new update of phaser or not

error: this.tweens.timeline is not a function

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [April 30, 2023, 12:09pm UTC](https://phaser.discourse.group/t/this-tweens-timeline/13212/2 "2023-04-30T12:09:18Z")

</div>

Tween timelines were removed in v3.60, replaced by [tween chains](https://labs.phaser.io/index.html?dir=tweens/chains/&q=).

> <https://github.com/photonstorm/phaser/blob/master/changelog/3.60/TweenManager.md>

---

<div class="post-metadata">

**Author:** ![kara.m](https://avatars.discourse-cdn.com/v4/letter/k/9dc877/32.png) [@kara.m](https://phaser.discourse.group/u/kara.m)\
**Post date:** [April 30, 2023, 12:17pm UTC](https://phaser.discourse.group/t/this-tweens-timeline/13212/3 "2023-04-30T12:17:04Z")

</div>

thank you
