SolitudeX Posted July 21, 2016 Share Posted July 21, 2016 (edited) Hi, I add a tween to a sprite to move around the screen,and I want to shoot it if i click the mouse. The problem is if the sprite moves after I click the mouse,the bullet will move to where the sprite is when I clicked the mouse.Is it possible to dynamically change the bullet tween position to the current sprite's position when the bullet tween is playing? Thanks~ Edited July 21, 2016 by SolitudeX Link to comment Share on other sites More sharing options...
SolitudeX Posted July 22, 2016 Author Share Posted July 22, 2016 Resolved: Using Arcade physics instead of Tween.Change the bullet.body.velocity according to bullet's and sprites's coordinates. Link to comment Share on other sites More sharing options...
Recommended Posts