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 / Sniper Type View (i know i shouldn't ask questions but...)

Author
Message
sicjoshsic
21
Years of Service
User Offline
Joined: 8th May 2003
Location: United Kingdom
Posted: 10th May 2003 14:09
how would you do a sniper type view in darkbasic? from what i can tell, you can only have one camera at a time, so is there some kind of CAMERA ZOOM command or something, because by moving the camera forward to emulate this, the camera can swing straight through the matrix!
Flashing Blade
22
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 10th May 2003 14:20
this is done in DB Pro
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 10th May 2003 14:35 Edited at: 10th May 2003 14:38
just use

if inkey$="" then set camera fov 15 else set camera fov 45

in your code to have a zoom for as long as the space key is depressed, to much/little zoom? then change the 15 for another value, or make code to alter the value in real time for a smooth zoom effect, cheers.

Mentor.

ps: oh!, why shouldn`t you ask questions?, even I ask questions sometimes and I have used basic for decades (although DB is a oddball kinda basic so I can be excused )

David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 10th May 2003 14:46 Edited at: 10th May 2003 14:47


That should help.

You are the th person to view this signature.
Programmers don't die, they just Gosub without return....
sicjoshsic
21
Years of Service
User Offline
Joined: 8th May 2003
Location: United Kingdom
Posted: 10th May 2003 19:57
thanks, i never even looked at the FOV commands
btw, the reason i put i shouldn't ask questions is because this post was originally in the code snippets forum

Login to post a reply

Server time is: 2024-11-24 13:24:48
Your offset time is: 2024-11-24 13:24:48