You mean like an example of something using a joystick to move? If that is the case, then I have an example I made a while ago which does exactly that. It also includes a camera_follow function which complements the way the joystick input is handled :P
+ Code Snippetsync on : sync rate 45 : hide mouse
make matrix 1,1000,1000,20,20
randomize matrix 1,20
update matrix 1
make object cone 1,5
xrotate object 1,90
fix object pivot 1
set object cull 1,0
color object 1,0x00ff00
global speed# as float
global movement as integer
speed#=0.00
movement=0
type Player
x# as float
y# as float
z# as float
ya# as float
lastcamya# as float
endtype
global Plr as Player
do
if abs((abs(joystick x())+abs(joystick y())))<100 then movement=0
if abs((abs(joystick x())+abs(joystick y())))>=100
movement=1
speed#=curvevalue(0.5,speed#,10)
ang#=wrapvalue(wrapvalue((atanfull(joystick x(),joystick y())+180)*-1))
Plr.ya#=wrapvalue(camera angle y(0)+ang#)
endif
if movement=0 then speed#=curvevalue(0,speed#,10)
inc Plr.x#,sin(Plr.ya#)*speed#
inc Plr.z#,cos(Plr.ya#)*speed#
yrotate object 1,Plr.ya#
position object 1,Plr.x#,get ground height(1,Plr.x#,Plr.z#)+2.5,Plr.z#
camera_follow(0, 1, 15, 20)
text 5,5,"Joystick to move"
text 5,25,"Joystick X:"+str$(joystick x())
text 5,45,"Joystick Y:"+str$(joystick y())
sync
loop
function camera_follow(cam as integer,object as integer,maxdist# as float,smoothing as integer)
`capture camera positions
camx#=camera position x(cam)
camy#=camera position y(cam)
camz#=camera position z(cam)
`capture object positions
objx#=object position x(object)
objy#=object position y(object)
objz#=object position z(object)
`get the distance between object and camera
dist#=abs(sqrt(((camx#-objx#)^2)+((camy#-objy#)^2)+((camz#-objz#)^2)))
`calculate the x and z of where the camera should end up around the
`object with a buffer radius of maxdist#
goalx#=(objx#+(sin(atanfull((camx#-objx#),(camz#-objz#)))*maxdist#))
goalz#=(objz#+(cos(atanfull((camx#-objx#),(camz#-objz#)))*maxdist#))
`calculate the camera's height at object position, plus 1-1/5 the object's height
camy#=curvevalue(objy#+((object size y(object)/5)*6),camy#,smoothing)
`calculate the new x and z for the camera if the object strays too far away
if dist#>maxdist#
camx#=curvevalue(goalx#,camx#,smoothing)
camz#=curvevalue(goalz#,camz#,smoothing)
else
`move the camera upward if the player gets too close
camy#=curvevalue(objy#+((object size y(object)/5)*6)+(maxdist#-dist#),camy#,smoothing)
endif
`point the camera at the object
point camera cam,objx#,objy#,objz#
`position the camera on the new calculated destination
position camera cam,camx#,camy#,camz#
endfunction