Skip to main content
GameDev.net gamedev.net
🔒 Locked

Challenge Question

Started by NickyP101 Feb 26, 2005 at 2:27 AM 0 replies 300+ views
Original Post
NickyP101
NickyP101
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 :)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.