Jump to content

Sprite coordinates don't change after successfull tween


elkranio
 Share

Recommended Posts

Hey guys. I am moving a group of sprites down using a tween. They move w/o any problem. But their y coordinates don't change after the tween is complete.

let moveToY = "+" + String(300);
game.add.tween(blocks).to({y: moveToY}, 500, 'Linear', true);

After the tween their y coordinates stay the same.  I am checking after the tween is complete of course.

What am I doing wrong?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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