i want to set a timer which is displayed on the top of the screen .... but i can'tttttttttttttttt here is the code which i tried to create!! ... kindly repair it for me
sync on
sync rate 60
hide mouse
for x = 1 to 10
make object cube x,100
position object x,rnd(2000),0,rnd(2000)
next x
`edited for testing
`load object "c:\cube.x",1
make object cube 11,10
timenum = 1
do
set cursor 100,100
cls
print timenum
timenum = timenum + 1
wait 1000
if rightkey()=1
y=wrapvalue(y+1)
`angley#=wrapvalue(angley#+5.0)
endif
if leftkey()=1
y=wrapvalue(y-1)
`angley#=wrapvalue(angley#-5.0)
endif
if upkey()=1
move object 11,10
endif
if downkey()=1
move object 11,-10
endif
`rotate both camera and object
yrotate object 11,y
yrotate camera y
` make the camera to follow the object in a circular manner
position camera object position x(11)-(sin(object angle y(11))*30),object position y(11)+10,object position z(11)-((cos(object angle y(11)))*30)
xrotate camera 2
sync
loop