Computer Science Canada Allowing the turret head to follow mouse |
Author: | Spitfire179 [ Thu Dec 11, 2008 12:10 pm ] | ||||
Post subject: | Allowing the turret head to follow mouse | ||||
If i get this to work i can continue The code
Is there anyway to have the turret pivot and rotate from its base and follow the location of the mouse to have shots go from the turret barrel to the mouse location? Mod Edit: Remember to use syntax tags! ![]()
|
Author: | pkjr92 [ Thu Dec 11, 2008 12:20 pm ] |
Post subject: | Re: Allowing the turret head to follow mouse |
Can you attach your pics please? |
Author: | Spitfire179 [ Thu Dec 11, 2008 12:26 pm ] |
Post subject: | Re: Allowing the turret head to follow mouse |
yeh i really dont know how i only know how to add em in one at a time ad as massive sized pics (they all .bmp inages) |
Author: | Insectoid [ Thu Dec 11, 2008 2:04 pm ] |
Post subject: | RE:Allowing the turret head to follow mouse |
Look at the Perfect Following tutorial. It is slightly different, but will explain picture rotation and stuff. By the way, it involves trigonometry. |