First Phaser Game (3d version)

Glad to hear :smiley:

I’m happy to help if you have questions.

For a chess game you probably won’t need physics. But you will probably need the TweenManager.

Here a snippet that will help you.

// create box
const box = this.third.add.box()

// clone position
let tmp = box.position.clone()

// tween the position
this.tweens.add({
  targets: tmp,
  duration: 1000,
  x: '+=2',
  z: '+=2',
  onUpdate: () => {
    box.position.set(tmp.x, tmp.y, tmp.z)
  }
})
1 Like