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 Discussion / having trouble,,,

Author
Message
DB newbie
19
Years of Service
User Offline
Joined: 13th Nov 2005
Location: um..... i dont remember.
Posted: 3rd Jan 2008 04:01
hey guys, i am currently working on an upcoming game that i call DARK Maze and it is a simple game made
in DBC were you are a sphere and you have to get from one end of the maze to the nexr... but
everything is going well so far except my camera is all screwy like how it moves.and i cant
figure out how to adjust it so it is a little higher up.

Problems:

1. camera screwy

2. height adjustment.

thanks in advance.









Come see the WIP!

Link102
20
Years of Service
User Offline
Joined: 1st Dec 2004
Location: On your head, weeeeee!
Posted: 3rd Jan 2008 16:51 Edited at: 3rd Jan 2008 16:53
this one is easy peasy
the angle of camera went wrong in the part where
cx#=newxvalue(x#,wrapvalue(a#+500),500)
cz#=newzvalue(z#,wrapvalue(a#+500),500)
the 500 (wich I underlined) represents the degrees of rotation you add to the rotation of the sphere. remove the 500 and you'll notice the camera's backwards, either add/substract 180 degrees or make the step value negative (like you did with the downkey).

you can do height adjustments by changing the underlined number:
cy#=get ground height(1,cx#,cz#)+100.0

DB newbie
19
Years of Service
User Offline
Joined: 13th Nov 2005
Location: um..... i dont remember.
Posted: 3rd Jan 2008 18:47
ok thanks alot that worked...its been a while since ive done DB so i forgot alot and this is really helping me refresh my memerory. thanks


Come see the WIP!

Login to post a reply

Server time is: 2025-06-02 09:41:29
Your offset time is: 2025-06-02 09:41:29