I've developed my code a bit further now, modifying Rich's code that he helped me with but now and added a flying ship etc, but when the ship flies upwards the camera doesnt follow it up and it goes out of shot, although it still follows it around, its above the camera so cant be seen. Ive tried putting the +10 bit to the cameras position maybe to try and keep it above the object but it didnt have an effect. Any help please?
angle = 0
dist = 20
height = 10
smooth = 25
do
position object 1, object position x(1), object position y(1), object position z(1)
set camera to follow 1,object position x(1), object position y(1)+10, object position z(1), angle, dist, height, smooth, 1
if upkey() then xrotate object (1), object angle x(1)-0.4
if downkey() then xrotate object (1), object angle x(1)+0.4
if keystate(30) then move object 1,-0.5
If keystate(44) then move object 1,0.5
if leftkey()
dec x
yrotate object 1,wrapvalue(x)
endif
if rightkey()
inc x
yrotate object 1,wrapvalue(x)
endif
sync
loop