hi
when i run this code:
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