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 / Keyboard Scancodes

Author
Message
Shay3000
17
Years of Service
User Offline
Joined: 7th Sep 2007
Location:
Posted: 8th Sep 2007 04:16
1. Where are the scancodes for the keyboard

2. how can I attach the camera to those keys

Shay3000
Gil Galvanti
19
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 8th Sep 2007 08:18
culmor30
17
Years of Service
User Offline
Joined: 16th Jun 2007
Location: In my head.
Posted: 8th Sep 2007 09:07
Well, use an IF statement to say:

If keydown(whatever)=1
move camera 10
endif

You know... then there's also turn, etc.
Shay3000
17
Years of Service
User Offline
Joined: 7th Sep 2007
Location:
Posted: 8th Sep 2007 16:49
What do I mean well is there a picture of the keyboard layout in dark basic pro

In blitz3D

where if I click on any key on the keyboard picture that it would give me the scancode number for that particular key is there something like that for dark basic pro

like for example in blitz3d w is 17

what do I do

Shay3000
Jane Doe
17
Years of Service
User Offline
Joined: 29th Jun 2007
Location:
Posted: 8th Sep 2007 21:32
Quote: "what do I do"


You click on the link that Gil Galvanti provided. It has a diagram of a keyboard with each key labeled with its key code.

- Jane
flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 9th Sep 2007 01:16
or, can just do

do
print scancode()
loop


"these shoes are 300 hundred dollars"-Shoes by Kelly http://smallgroupproductions.com/
Shay3000
17
Years of Service
User Offline
Joined: 7th Sep 2007
Location:
Posted: 9th Sep 2007 08:34
if upkey()=1 then xrotate camera 0,0 : move camera 0,0.2 : xrotate camera 0,cx#


I want to use W,S,A,D for character movement or a camera movement

how would you do it ?

Shay3000
Shay3000
17
Years of Service
User Offline
Joined: 7th Sep 2007
Location:
Posted: 9th Sep 2007 13:05
thank you windowskiller,flashing snall,Jane Doe,culmor30 and Gil Galvanti for helping me soo much

Shay3000

Login to post a reply

Server time is: 2024-11-25 13:43:15
Your offset time is: 2024-11-25 13:43:15