mohammed alsaqqal Posted April 8, 2016 Share Posted April 8, 2016 i want a way to make the pointer or input catch a moving object and shoot or throw it to a any direction that user want >> like i want to catch a moving balls .. and shoot or throw it to it home .. Link to comment Share on other sites More sharing options...
megmut Posted April 8, 2016 Share Posted April 8, 2016 Break it down into chunks.. step 1: (sudo) if the catcher's physics touches the ball step 2: (sudo) add the ball to the child of the catcher step 3: if catcher has ball, on input down, throw This should be a fairly straight forward piece of code logic, just a simple case of breaking it down into individual tasks Link to comment Share on other sites More sharing options...
mohammed alsaqqal Posted April 9, 2016 Author Share Posted April 9, 2016 21 hours ago, megmut said: Break it down into chunks.. step 1: (sudo) if the catcher's physics touches the ball step 2: (sudo) add the ball to the child of the catcher step 3: if catcher has ball, on input down, throw This should be a fairly straight forward piece of code logic, just a simple case of breaking it down into individual tasks thank you .. its useful i have some ideas ,... but i dont know what codes i should use :\ Link to comment Share on other sites More sharing options...
Arcanorum Posted April 10, 2016 Share Posted April 10, 2016 http://phaser.io/examples/v2/particles/firestarter Link to comment Share on other sites More sharing options...
mohammed alsaqqal Posted April 10, 2016 Author Share Posted April 10, 2016 11 minutes ago, Arcanorum said: http://phaser.io/examples/v2/particles/firestarter thank you ... its helpful some how .. but the thing that i want to do is when i drag the object the , then the object will has the velocity and the angle of pointer ... and go to it when i stop draging .. i hope you catch my point Link to comment Share on other sites More sharing options...
Recommended Posts