Jacky Posted September 13, 2016 Share Posted September 13, 2016 Hi all, I'm trying to learn game physics. I have this challenge which is I would like to know how to let a player kick a ball to any direction. So far I know how to kick a ball up to one specific direction but I want to know how do it randomly based on the user input direction. I have this so far. ballSpri.events.onInputOver.add(, ballSpri; function thisbodyvelocityy 1070; I am sorry if my question is not clear. Any help would be appreciated Thanks. Link to comment Share on other sites More sharing options...
samme Posted September 13, 2016 Share Posted September 13, 2016 Try http://phaser.io/examples/v2/arcade-physics/move-to-pointer Link to comment Share on other sites More sharing options...
Jacky Posted September 13, 2016 Author Share Posted September 13, 2016 thanks, that useful. I will try to solve it. thank Samme. Link to comment Share on other sites More sharing options...
Recommended Posts