elkranio Posted December 16, 2017 Share Posted December 16, 2017 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 More sharing options...
elkranio Posted December 16, 2017 Author Share Posted December 16, 2017 Oh got it. block.y gave me local (group) coordinates, I needed to use global ones. Link to comment Share on other sites More sharing options...
Recommended Posts