i have a 3d object as my mouse pointer (object #1), but i want it so if it goes to the edge of the screen, it will move the camera in that direction (ie: if you put the mouse to the right edge of the screen, it will move the camera to the right...like in strategy games)
any ideas?
heres my source, just in case you might need it
autocam off : sync on : sync rate 60 : hide mouse
gosub make_mtrx
gosub make_mouse
position camera 0, 200, 0
`-------------------------------------
`--------------MAIN LOOP--------------
`-------------------------------------
do
gosub update_camera
gosub move_mouse
sync : loop
make_mouse:
load object "objects\pointer.3ds", 1
`make object cone 1,5
rotate object 1, 90, 0, 0
fix object pivot 1
color object 1, rgb(255,0,0)
mx# = 0.0
mz# = 0.0
position object 1, 0, 10, 0
return
make_mtrx:
matxsize = 1000
matzsize = 1000
xtiles = 50
ztiles = 50
Make Matrix 1, matxsize, matzsize, xtiles, ztiles
position matrix 1, 0,0,0
return
update_camera:
camx# = camera position x()
camy# = camera position y()
camz# = camera position z()
Position Camera camx#,camy#,camz#
point camera camx#, 0, camz#
return
move_mouse:
mx# = mx# + mousemovex() * .3
mz# = mz# - mousemovey() * .3
my# = get ground height(1, mx#, mz#)
position object 1, mx#, 100, mz#
text 1,1, "Mouse: (" +str$(mx#) +", " +str$(mz#) +")"
return