Aiming And Shooting With Mouse
TheGameFox
Member Posts: 6
Hello,
I am making an up and down shooting game in which I would like to have the ability to shoot wherever I click. I have tried doing so but here are my problems:
Alright so here is what I tried. I created an actor and constrained it to my player. I did this so that I could make the constrained actor rotate with my mouse so I can shoot where my mouse is pointing. It worked fine until I left the origional camera view. When It left the origional camera view, it started spinning randomly and not rotating with my mouse. I then created a camera offset. Now the constrained actor can leave the origional camera view and rotate correctly, but, once I move a couple paces from the origional camera view, the constrained actor starts to move off of my player as I walk, even though it is constrained.
If you have a solution to how to achieve shooting where the mouse is clicked, please let me know.
Thanks in advance!
I am making an up and down shooting game in which I would like to have the ability to shoot wherever I click. I have tried doing so but here are my problems:
Alright so here is what I tried. I created an actor and constrained it to my player. I did this so that I could make the constrained actor rotate with my mouse so I can shoot where my mouse is pointing. It worked fine until I left the origional camera view. When It left the origional camera view, it started spinning randomly and not rotating with my mouse. I then created a camera offset. Now the constrained actor can leave the origional camera view and rotate correctly, but, once I move a couple paces from the origional camera view, the constrained actor starts to move off of my player as I walk, even though it is constrained.
If you have a solution to how to achieve shooting where the mouse is clicked, please let me know.
Thanks in advance!
Comments
Cheers!
http://dl.dropbox.com/u/26048107/example.zip
Cheers!
and if you have any more problems in the future go ahead and message me.