Hi all, i was practising my darkbasic skills but i ran into a few problems and i try to solve them but no luck, my problems are below:
1.How do i make my camera look behind the player object, for example in car racing games you can look behind you to see if any thing is coming, how do i do this i try'd this code:
if keystate(2)=1 then rotate camera 180,0,0
But it wont look backwards and when i release 1 the camera stays rotated,so i wanna know how do i make my camera look backwards/behind when i press a key(for example1) and when i release the key it will go back to the position before i pressed for example 1
2.How do i make my object do something when its in range,for example a range of 500.
i'm the M king.