hi im new to dark basic i really much more enjoy this then codeing with C++ and i was wondering i tried to set it up so i can move it with more then just the up and down and left and right keys, so i tried to attach it to like the a key for example but i get an error when i compile it saying variable a keydoesnt exist in this program, heres my code:
Rem Setup sync
Sync On
Sync Rate 30
Rem Create 5 cubes and place randomly
For x = 1 to 5
Make object cube x,100
Position object x,Rnd(2000),0,Rnd(2000)
Next x
Rem Main loop
Do
Rem Store camera angle
caY#= Camera angle Y()
caX#= Camera angle X()
Rem Control input for camera movement
If Upkey()=1 then Move camera 10
If Leftkey()=1 then Yrotate Camera Wrapvalue(caY#-5)
If Rightkey()=1 then Yrotate Camera Wrapvalue(caY#+5)
if Downkey()=1 then Xrotate Camera Wrapvalue(caX#+5)
if aKey()=1 then Xrotate Camera Wrapvalue(caX#-5)
Rem Refresh Screen
Sync
Loop
For x = 1 to 5
Make object cube x,100
Position object x,Rnd(2000),0,Rnd(2000)
Next x
how do i do the a key thing to work?