hi i was following one of the tutuorials and this is what i have so far
rem setup sync
sync on
sync rate 30
rem make cubes and place randomly
for x = 1 to 5
make object cube x,100
position object x,rnd(200),0,rnd(2000)
next x
rem make sphere
make object sphere 10,50
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 then Yrotate object 10,Wrapvalue(aY#-5)
if rightkey()=1 then Yrotate object 10,Wrapvalue(aY#+5)
if downkey()=1 then move object 10,-10
rem get player object position and store in X# and Z#
X#=Object position x(10)
Z#=Object position z(10)
rem get new camera position and store in cZ# and cX#
cZ#=newzvalue(Z#,aY#-180,100)
cX#=newxvalue(X#,aY#-180,100)
rem position the camera
position camera cX#,100,cZ#
rem poin the camera at the player pbject
point camera X#,50,Z#
rem refeash the screen
sync
loop
well anyway I am having troube understanding this part of the code
rem get new camera position and store in cZ# and cX#
cZ#=newzvalue(Z#,aY#-180,100)
cX#=newxvalue(X#,aY#-180,100)
rem position the camera
position camera cX#,100,cZ#
rem poin the camera at the player pbject
point camera X#,50,Z#
could you please help explain it to me?
Thank you,
Glyvin101