I am making a shooter. the problem is when i turn the sphere that is me, the gun i have next to it is turnling wierd. heres the code;
`Hide Mouse
Hide Mouse
`Sync
Sync On
Sync Rate 30
`Make Matrix
Make Matrix 1,10000,10000,20,20
`Make Texture
Load Bitmap "grass1.bmp",1
get image 1,0,0,256,256
delete bitmap 1
`Texture Matrix
Prepare Matrix Texture 1,1,1,1
Fill Matrix 1,0,1
`Make Object
make object sphere 1,20
`Make gun
make object cylinder 2,2
scale object 2,100,100,500
`position gun
position object 2,200,0,200
`Position Object
Position Object 1,100,0,100
`Main Loop
Do
`Variable
angley#=object angle y(1)
angley2#=object angle y(2)
oldx#=x#
oldy#=y#
oldz#=z#
oldangley#=angley#
oldangley2#=angley2#
`Control Camera
If Upkey()=1
XTest#=newxvalue(x#,angley#,20)
ZTest#=newzvalue(z#,angley#,20)
If XTest#>0 and XTest0 and ZTest#0 and XdTest0 and ZdTest#
"When you were born, you cried and the world rejoiced. Live so when you die, the world cries and you rejoice."