Jump to content

How to move arcade box with body using tweens


Recommended Posts


I'm using the arcade physics engine. I'm trying to move a cloud left and right via tweens but the problem is the arcade box isn't moving with it. 
Does anyone know how to fix this?


createTweens() {
      targets: this,
      x: this.distanceX,
      duration: this.speed,
      yoyo: true,
      loop: - 1


Link to comment
Share on other sites


  • Recently Browsing   0 members

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