hey guys, i am currently working on an upcoming game that i call DARK Maze and it is a simple game made
in DBC were you are a sphere and you have to get from one end of the maze to the nexr... but
everything is going well so far except my camera is all screwy like how it moves.and i cant
figure out how to adjust it so it is a little higher up.
Problems:
1. camera screwy
2. height adjustment.
thanks in advance.
rem load object
rem load sphere
make object sphere 1,75
scale object 1,70,70,70
make matrix 1,10000.0,10000.0,25,25
randomize matrix 1,50.0
set matrix height 1,12,12,300.0
update matrix 1
sync on
sync rate 60
do
rem Control camera with arrow keys
if upkey()=1 then x#=newxvalue(x#,a#,10) : z#=newzvalue(z#,a#,10)
if downkey()=1 then x#=newxvalue(x#,a#,-10) : z#=newzvalue(z#,a#,-10)
if leftkey()=1 then a#=wrapvalue(a#-5.0)
if rightkey()=1 then a#=wrapvalue(a#+5.0)
rem Update character
y#=get ground height(1,x#,z#)+50.0
position object 1,x#,y#,z#
yrotate object 1,a#
rem Position camera to the back of the character
cx#=newxvalue(x#,wrapvalue(a#+500),500)
cz#=newzvalue(z#,wrapvalue(a#+500),500)
cy#=get ground height(1,cx#,cz#)+100.0
position camera cx#,cy#,cz#
rem Point camera at object
point camera x#,y#,z#
sync
loop

Come see the WIP!