elkranio

Sprite coordinates don't change after successfull tween

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?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.