thomas Posted October 5, 2016 Share Posted October 5, 2016 Hi guys, here is the simple snippet of some code. https://gist.github.com/lavokad/72d5eb8220c41ee65c5f49d46f3eccbc The method moveToXY which is called in shoot method's body does take into account the velocity argument well. The bullet flies to the destiny slowly, even I pass a very high value. The game container is about ~5000px/~12000px size (I want the game and its images to render well on a big monitor). It has a player who is on ground trying to shoot a bullet up. Why doesn't this work as I expect? Thanks in advance Link to comment Share on other sites More sharing options...
Taggrin Posted October 6, 2016 Share Posted October 6, 2016 The 5th argument of moveToXY is optional and will set the maximum time the object may take to move, which will overwrite the speed if specified. Just leave out the 5th argument (value 0) . thomas 1 Link to comment Share on other sites More sharing options...
thomas Posted October 8, 2016 Author Share Posted October 8, 2016 Thanks Tagrrin Link to comment Share on other sites More sharing options...
Recommended Posts