How would one make the camera mouse controls invert when the object turns around? This is my code so far:
`Variables
speed# = 0
speed_max# = 10
speed_min# = 0
speed_chg# = 0.1
plyr_bank# = 0
plyr_turn# = 0
mx# = mousemovex()
my# = mousemovey()
px# = camera position x(0)
py# = camera position y(0)
`speed control
if shiftkey() = 1 then inc speed#,speed_chg#
if controlkey() = 1 then dec speed#,speed_chg#
if speed# > speed_max# then speed# = speed_max#
if speed# < speed_min# then speed# = speed_min#
move camera 0,speed#
`yawing left & rightif rightkey()=1 then turn camera right 3
if leftkey()=1 then turn camera left 3
`rolling LEFT/RIGHT
if mx# < 0 then plyr_turn# = curvevalue(3, plyr_turn#, 20)
if mx# > 0 then plyr_turn# = curvevalue(-3, plyr_turn#, 20)
IF mx# = 0 then plyr_turn# = curvevalue (0, plyr_turn#, 10)
zrotate camera 0,wrapvalue(camera angle z(0)+plyr_turn#)
`pitching up & down
if my# < 0 then plyr_tilt# = curvevalue(3, plyr_tilt#, 20)
if my# > 0 then plyr_tilt# = curvevalue(-3, plyr_tilt#, 20)
if my# = 0 then plyr_tilt# = curvevalue(0, plyr_tilt#, 10)
xrotate camera 0,wrapvalue(camera angle x(0)+plyr_tilt#)
^ it works, but once you turn around, the controls invert.
Ling creckt tsi nocreckto havela? NASA chetallnar mo lu'ul nasding!