Hi, I am currently starting a 3D game and I am having trouble making the camera follow a object here is my code...
Sync rate 30
Make object Sphere 10,50
Position object 10,-100,0,-100
Set object collision to spheres 10
Texture object 10,1
Rem Main loop
Do
Rem Store Object angle Y in aY#
aY# = Object angle Y(10)
Rem Control input for camera
If Upkey()=1 then Move object 10,10
If Leftkey()=1
Yrotate object 10,Wrapvalue(aY#-5)
Endif
If Rightkey()=1
Yrotate object 10,Wrapvalue(aY#+5)
Endif
Loop
I would like suggestions on how to make my camera follow the object.
Thank you.