Yes, i know that's for DP forums but i need to know how to do mouse look and how to strafe left and right as the CC only moves up down.
here's my code:
` rotate and position the camera based on the box controller
position camera object position x ( 5 ), object position y ( 5 ) + 80, object position z ( 5 )
rotate camera object angle x ( 5 ), object angle y ( 5 ), object angle z ( 5 )
OldCamAngleY# = CameraAngleY#
OldCamAngleX# = CameraAngleX#
CameraAngleY# = wrapvalue ( CameraAngleY# + mousemovex ( ) * 0.45 )
CameraAngleX# = wrapvalue ( CameraAngleX# + mousemovey ( ) * 0.45 )
while phy get trigger data()
position object 3,0,50,0
endwhile
yrotate object 5, curveangle ( CameraAngleY#, OldCamAngleY#, 24 )
xrotate object 5, curveangle ( CameraAngleX#, OldCamAngleX#, 24 )
and here's the CC code
if upkey ( )
key = 1
phy move character controller 5, 500.0
endif
if downkey ( )
key = 1
phy move character controller 5, -500.0
endif
if leftkey( )
Yrotate object 5,CameraAngleY#
endif
if key = 0
phy move character controller 5, 0.0
endif
any advice would help.
"Originally I was going to have a BS on it but you know how that would be. I can't walk around with the letters BS on me." More or less a qoute by Syndrome from Jack, Jack, attack