Heya
I've got a Problem again.
At the moment I try several things to find something for me what I can handle. So i came up with the idea "hey an egoshooter shouldn't be too hard for the beginning." and then i thought "egoshooters are boring so why not try to code a 3rd person shooter." The next thing i did was typing in "google.com" in firefox and searched for a 3rd person shooter that could make a fine example.
Final Fantasy VII Dirge of Cerberus
[video:youtube]
http://www.youtube.com/watch?v=t3xU_p8PY68[/video]
now my problem. I want to make something like that but i've got serious problems with the camera. I thought that would be easy but it's not.
I want something like this:
1. The player is NOT in "gun-mode"
--> when the character's not moving
----> the camera should circle around the charakter and look at him all the time. camera moved by mouse_force (pan and tilt -> tilt should be clamped in a certain range)
--> when the character's moving:
----> the camera follows the character. when i move the mouse the cam should work like an egoshooter, but the character should face the direction the cameras facing and the camera should look at the character.
2. The player is IN "gun-mode"
if i click and hold the right mouse button the character should switch into gun-mode. that means the character rises his arm and aims at the cross hair which appears on the screen. the camera should be moved a little to the right and up and facing the direction the cross hairs facing so that the camera looks over the right shoulder of the character. if i move the mouse I should be able to aim like in an egoshooter, the character should turn with the cross hair. he's always facing the cameras direction in this mode. a little bit of dead space/resident evil 4/5 style.
well watch the youtube video i posted above, that should point out what I tried to do. unsuccessfully -.-
hope you can help me with that problem!
greetings - Roxas