1) camera views:
You have two different styles that you want to use, so you need to store the positional information for each. Call a camera function each frame to move to (or stay in) the view that is current. Here's some pseudo code for you:
if keypressed = cameraswitchkey then SwitchCamera()
function SwitchCamera()
if CameraMode = ThirdPerson then CameraMode = FirstPerson else CameraMode = ThirdPerson
endfunction
function UpdateCamera()
if CameraMode = ThirdPerson
` show the character
` move the camera into 3PV using a smoothing technique (like set camera to follow)
else
` move the camera to just in front of the model with a smoothing technique
` hide the character
endif
endfunction
For the second issue, it's not really a matter of 'assigning' keys. What you'll need to do is set up either a function or a flag for the intent of what each key is supposed to do. Then, when that key is pressed, you need to call the associated function or set the related flag.
For example:
if inkey$() = "a" then DoMyFunction(10)
if inkey$() = "s" then DoMyFunction(11)
if inkey$() = "q" then inc Baddies, 1
if inkey$() = "w" then dec Baddies, 1
if inkey$() = "z" then PartyTime = 1
Hope this helps. Cheers.
-ChipOne
-= i only do what my rice krispies tell me to do =-