Original Post
Im making a game, shooter game, not too advanced just using tiles etc, im gona make it networked but first ive got a little obstacle. Ok on a JPanel a player has an x and y value, when the mouse button is clicked a bullet thread is created and is passed the player x and y and the mouse clicked x and y. Haha ok so here is the difficult bit, atm im doing 3 unit math in yr 11, how can i make a bullet travel from player xy in a straight line to destination xy lol There must be some way, to tell ya the truth im a lil lost :) Any help would be great. Thank in advance nick :)