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 / This Noob is In Danger, shall you come to thigh camera rescue?

Author
Message
Gunslinger Meh
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location:
Posted: 12th Feb 2007 06:58
My problem is that I cannot control the camera movement up or down with the push of a simple button like D or C, and the mouse is not what I can use for this. Does anyone have any idea as to move the camera up and down like this?
Z ephyrmancer
18
Years of Service
User Offline
Joined: 27th Jul 2006
Location:
Posted: 12th Feb 2007 09:55
You can move the camera by repositioning it. For example;



Thats kind of an over-simplization, but the code is sound =P I wouldn't suggest copy and pasting it, it should be fairly easy to intigrate.

From the ashes...
z i l c h vortex
17
Years of Service
User Offline
Joined: 20th Feb 2007
Location: united kingdom
Posted: 22nd Feb 2007 01:16
or you can do

do
if shiftkey()
pitch camera up 90
move camera 1
pitch camera up -90
endif
if controlkey()
pitch camera down 90
move camera 1
pitch camera down -90
endif
loop

life is short but so am i

Login to post a reply

Server time is: 2024-09-25 17:22:25
Your offset time is: 2024-09-25 17:22:25