First off, sorry, I know similar topics have been posted but I couldn't get what I needed out of the posts I found.
I am making a plain and pointing trying to point it at the camera. It has a plant image on it. I am making the classic 2d plant that rotates based on the camera. The problem is I can't get it to rotate. Sorry about the redundance of the post again, and thanks for any help.
source and media attached
source:
Sync On
sync rate 30
load image "plant.bmp",1
set ambient light 80
For x=1 to 100
make object plain x,5,5
texture object x,1
fade object x,200
position object x,RND(2000),0,RND(2000)
set object x,1,0,0
POINT OBJECT x,X#,0,Z#
Next x
Do
Rem Store Object angle
CameraAngleY# = Camera angle Y()
Rem Control input for camera
If Upkey()=1
XTest# = Newxvalue(X#,CameraAngleY#,20)
ZTest# = Newzvalue(Z#,CameraAngleY#,20)
If XTest#>0 and XTest#<10000 and ZTest#>0 and ZTest#<10000
Move camera 1
Endif
Endif
If Leftkey()=1 then Yrotate Camera Wrapvalue(CameraAngleY#-5)
If Rightkey()=1 then Yrotate Camera Wrapvalue(CameraAngleY#+5)
X# = Camera position X()
Z# = Camera position Z()
Position Camera X#,0,Z#
sync
Loop