Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

Proper way to run multiple tweens at the same time


egellon
 Share

Recommended Posts

Hello.

I want to start multiple tweens at the same time (multiple objects need to change position at the same time). What is the proper way to handle such situation? Is something like this enough or there are some better methods to do this?

let tween1= this.game.add.tween(...)
let tween2= this.game.add.tween(...)

tween1.start();
tween2.start(); 

I thought I can use "chain" for it, but according to the docs it is used to run tweens sequentailly. 

I would be grateful for your input.

Best regards. 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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