HERES MY CODE FOR THE CONTROLS , how would i make the object straff with the camera:
OldAngleY# = AngleY#
OldAngleX# = AngleX#
rem Control player object
move object 11,2
If Leftkey()=1
XTest# = Newxvalue(X#,Wrapvalue(AngleX#-90),7)
ZTest# = Newzvalue(Z#,Wrapvalue(ANGLEX#-90),7)
If XTest#>0 and XTest#<10000 and ZTest#>0 and ZTest#<10000
X#=XTest#
Z#=ZTest#
Endif
Endif
If Rightkey()=1
XTest# = Newxvalue(X#,Wrapvalue(ANGLEX#+90),11)
ZTest# = Newzvalue(Z#,Wrapvalue(ANGLEX#+90),11)
If XTest#>0 and XTest#<10000 and ZTest#>0 and ZTest#<10000
X#=XTest#
Z#=ZTest#
Endif
Endif