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 / What stupid mistake have I made?

Author
Message
Tom J
19
Years of Service
User Offline
Joined: 4th Aug 2005
Location: Essex, England
Posted: 23rd Aug 2006 14:39


This code is annoying. You simply control a cube by using the arrow keys. But on my computer the turning is messed up, what is wrong?

Let the games begin.
Darth Vader
19
Years of Service
User Offline
Joined: 10th May 2005
Location: Adelaide SA, I am the only DB user here!
Posted: 23rd Aug 2006 15:25
You could try this,

Don't know if thats exactly what you want, but give me a tingle if I can be of further help!


Zergei
19
Years of Service
User Offline
Joined: 9th Feb 2005
Location: Everywhere
Posted: 23rd Aug 2006 16:40
Your misunderstanding the "yrotate object" command, you don't give the amount you want it to rotate, but the value at wich you want it rotated. So, replace this part...



with this...



Further on my stuff at...
Darth Vader
19
Years of Service
User Offline
Joined: 10th May 2005
Location: Adelaide SA, I am the only DB user here!
Posted: 23rd Aug 2006 16:47
Oh I thought he ment something different. Oh well I tired!


Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 23rd Aug 2006 17:01
By the way, you can just do too:

speed#=.02
Move Object 1,speed#*(upkey()-downkey())

Just change the speed# variable and that will work for upkey and downkey.

Applyby has Flies in his Eyes.
Tom J
19
Years of Service
User Offline
Joined: 4th Aug 2005
Location: Essex, England
Posted: 23rd Aug 2006 17:34
The turning is working perfectly now. Thanks Zergei!

And thanks Xenocythe for the tip on changing speed.

Let the games begin.

Login to post a reply

Server time is: 2024-11-26 11:59:12
Your offset time is: 2024-11-26 11:59:12