Can some one help me with my camera problem. I rotate the camera around a ball and it goes through my levels walls.Is there a way so that it doesn't do that or it stops when the camera hits the wall.
this is the code i am using for my camera
ay#= object angle y(2)
X# = Object position x(1)
y# = OBJECT POSITION Y(1)
Z# = Object position z(1)
Rem get new camera position and store in cZ# and cX#
cZ# = Newzvalue(Z#,aY#-180,100+move*2)
cX# = Newxvalue(X#,aY#-180,100+move*2)
position camera cX#,object position y(1)+270-cmove/2,cZ#-500+cmove
Point camera X#,object position y(1),Z#
Download free games at my website at Ryworks Games