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.

DarkBASIC Professional Discussion / Is it possible to add third person to my 1st person collision code?

Author
Message
cochran2904
15
Years of Service
User Offline
Joined: 28th Mar 2011
Location: at my computer
Posted: 19th Jul 2011 10:27
I have a first person collision code and i'd like to make it to when i press the key "v" it changes to third person. Then when i press "v" again it changes back to first person. Is there a way to do this. Here is some of my code broken down:

This is my walking code as well as when i press shift, my running code. With the reticle




Here is my whole code. Best of luck
Hodgey
16
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 19th Jul 2011 10:46 Edited at: 19th Jul 2011 10:46
Yes it is possible and because I'm lazy I'm just going to psuedocode it. You could possibley use a boolean to do this like:


Hope that helps

Login to post a reply

Server time is: 2026-07-10 17:18:45
Your offset time is: 2026-07-10 17:18:45