a=dbInKey();
if(dbInKey()=="q")
{
dbPitchCameraUp(5.0);
dbText(0,10,"q was pressed and detected");
}
else
{
dbText(0,10,a);
}
if(dbInKey()=="a")
{
dbPitchCameraDown(5.0);
dbText(0,10,"a was pressed and detected");
}
else
{
dbText(0,10,a);
}
In this instance, the (a) which is the result of the key, shows up on the screen as a or q, however, my if statements never trigger a true, they are always false. I want to have the camera look up and look down, I have the turn left, turn right, forward and back taken care of, but the pitch isn't working. What other command should I use in this case to pitch the camera up and down.