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 / gah! stupid z axis!

Author
Message
ChozoMufin
20
Years of Service
User Offline
Joined: 19th Apr 2005
Location: Columbus, OH
Posted: 25th Apr 2005 06:33
ok. im stuck. in my game, i put if leftkey()=1 then turn object left 1, if upkey()=1 then pitch object up 1, etc etc. but, when i pitch down and then turn left, the z axis gets all screwed up and the camera doesn't compensate. and then, when i flatten out, the camera is no longer centered on the plane. these are 2 snippits of code that have to do with this problem. help!!!!
NanoBrain
20
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Portland, OR
Posted: 26th Apr 2005 07:38
chozo555,

Please repost your source code. There was an error.


+NanoBrain+
ChozoMufin
20
Years of Service
User Offline
Joined: 19th Apr 2005
Location: Columbus, OH
Posted: 26th Apr 2005 08:01
ok. these are just the parts that are given me troubles.
ChozoMufin
20
Years of Service
User Offline
Joined: 19th Apr 2005
Location: Columbus, OH
Posted: 26th Apr 2005 11:13 Edited at: 27th Apr 2005 10:02


ok i hope that helps. i really, really need to fix this bug befor i can do anything else. so please help!!!!
hyrichter
21
Years of Service
User Offline
Joined: 15th Feb 2004
Location: Arizona
Posted: 26th Apr 2005 14:05
Put your code in a


You may need to use the command set object rotation zyx

Link102
20
Years of Service
User Offline
Joined: 1st Dec 2004
Location: On your head, weeeeee!
Posted: 27th Apr 2005 06:39 Edited at: 27th Apr 2005 06:39
what hyrichter said, you need to focus the values on the current object rotation, not wildly adding 2
ChozoMufin
20
Years of Service
User Offline
Joined: 19th Apr 2005
Location: Columbus, OH
Posted: 27th Apr 2005 08:11
ok ill try that. and hyrichter, as i said in my previous messages, i CANT get it in the code snippet box. it wont let me. i tried twice. anyways, ill gibve that a shot.
ChozoMufin
20
Years of Service
User Offline
Joined: 19th Apr 2005
Location: Columbus, OH
Posted: 27th Apr 2005 08:38
ok. i gave it a shot, and it only made the problem worse, unless im doing something wrong. please show me exactly what you meant.
ChozoMufin
20
Years of Service
User Offline
Joined: 19th Apr 2005
Location: Columbus, OH
Posted: 27th Apr 2005 09:28
I also tried what hyricter said and that made the only the camera move and not the plain for some reason.
ChozoMufin
20
Years of Service
User Offline
Joined: 19th Apr 2005
Location: Columbus, OH
Posted: 27th Apr 2005 09:28
*only made
ChozoMufin
20
Years of Service
User Offline
Joined: 19th Apr 2005
Location: Columbus, OH
Posted: 27th Apr 2005 09:51 Edited at: 27th Apr 2005 10:00
sorry, hyrichter. at the time i didnt know how to put the stuff in the snippits(cuz im dum).
ChozoMufin
20
Years of Service
User Offline
Joined: 19th Apr 2005
Location: Columbus, OH
Posted: 27th Apr 2005 09:53 Edited at: 27th Apr 2005 11:38
also, this may seem random, but what are the advantages dark basic pro has over classic? i was thinking of upgrading. also, how much more does it cost? do i have to buy a completely new program, or is it an upgrade? i would just like to know.

Login to post a reply

Server time is: 2025-05-23 11:23:12
Your offset time is: 2025-05-23 11:23:12