Well, which way is the sphere looking? Left, right, degrees? I made this code that may help out:
rem Make sphere
make object sphere 1,5
position object 1,0,0,0
rem Make object to see
make object cylinder 2,5
postion object 1,0,0,-10
rem loop
do
`get positions
x#=object position x(1)
y#=object position y(1)
z#=object position z(1)
`mouse click
if mouseclick()=1
position camera x#,y#+10,z#
set camera to object orientation 1
endif
loop
OK, that should work for you. However, if the camera looks the opposite direction than the sphere, insert this code between the set camera to object orientation and the endif:
turn camera left 180. You're set and ready to go. If you need more help, post here or e-mail me.
--------------------------------------
Vote for
Excelsis on the Puzzle Game Compo
__________________________________________
<<<<<Check out my sites>>>>>
www.rhettgames.tk | www.slayerbattletanks.tk