Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / 3rd Person Camera not working...

Author
Message
UltraG
17
Years of Service
User Offline
Joined: 19th Jan 2007
Location: Right here, where I am.
Posted: 20th Jan 2007 03:39
How come my third person camera is not working? I swear I did it right. It's supposed to be behind the object. I tried it, but it didn't work, Can anyone help? Here is the code.



Flashing Blade
22
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 20th Jan 2007 12:49 Edited at: 20th Jan 2007 13:12
put this bit:

in a function and call it something like 'UpdateCamera()'

now in your main loop (after movement code, and before sync) call the function.

I'd also put your movement code in a function too, then you main loop would lok like this:

Do
MoveCharacter()
UpdateCamera()
Loop.

So when all done looks like this:





The word "Gullible" cannot be found in any English Dictionary.
UltraG
17
Years of Service
User Offline
Joined: 19th Jan 2007
Location: Right here, where I am.
Posted: 20th Jan 2007 17:46
Thank you, that should help.
I never really thought about putting things in functions before, but I guess it helps clear up the mess, doesn't it?

Login to post a reply

Server time is: 2024-11-26 03:28:25
Your offset time is: 2024-11-26 03:28:25