Links
AUM Magazine
Newest Posts
variadic functions
by jcl
39 minutes 45 seconds ago
Ineria
by TheLiam
41 minutes 17 seconds ago
Mesh question
by Logitek
Today at 13:57
how to save the structures with add_struct ?
by Helghast
Today at 13:18
Bugs in games
by Random
Today at 12:51
Latest Screens
Overlay Window Project
Marble Ball Dash
Sea
Gravix
Secret Of The Sword - Castle Rooms
Who's Online
65 registered (achaziel, 3dgs_snake, Benni003, aaronkaminer, aztec, bobby_danseco, Bone, 3run, axon, 8 invisible), 139 Guests and 12 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
GMaSG, Galion, BlueFlame, getyoursnackon, komody
14940 Registered Users
Topic Options
Rate This Topic
#309245 - 02/08/10 07:04 Camera Mod
Gamesaint762 Offline
Senior Member

Registered: 01/25/04
Posts: 428
I need to modify the Camera 3rd person camera code and palyer code a bit. I want to be able to have the basic 3rd person view but when I press the S key I want the player to turn and run towards the camera. After a bit the camera will move to the side and pan to follow player as he runs by, then smoothly transition back to standard 3rd person view. Now I know this is kinda complex, but is there any code out there to steer me in the right direction? Please help, thanks!

Top
#309387 - 02/09/10 00:52 Re: Camera Mod [Re: Gamesaint762]
MrGuest Offline
User

Registered: 07/30/08
Posts: 654
write the exact algorithm you want, i'll see if i can provide the code

e.g
Code:
while(player_exists){

   if key_s
      camera look at player

      if player moves passed camera
         wait 1/2 second
         move camera to new spot behind player
         camera look at player
   wait(1);
}


Top
#309393 - 02/09/10 02:07 Re: Camera Mod [Re: MrGuest]
Gamesaint762 Offline
Senior Member

Registered: 01/25/04
Posts: 428
sent you a PM MRGuest...

Top



lite-c | chip programmers | download | shop | resources | magazine | manual | support faq | wiki | bugs | beta features | forecast

Conitec Datasystems, Inc · 5000 Thorne Drive, Suite F · La Mesa, CA 91941 · Tel +1 (619) 462-0515 · Fax +1 (619) 462-0519 · info (at) 3dgamestudio.net