Here it is kiddies, A simple 3D mouse setup. This uses NO screen picking, Trig, or anything.
`Hide the mouse, as we won't be needing it. (No, duh! it's 3D mouse code.)
hide mouse
`Get the center of the screen
CX# = screen width() / 2.0
CY# = screen height() / 2.0
`make the 'mouse'
make object box 2,10,10,10
`make the 'land'
make object box 1,screen width(),1,screen height()
position object 1,CX#,0,-CY#
color object 1,RGB(0,255,0)
do
`position the 'mouse' at the real mouse's coords
position object 2,mousex(),0,-mousey()
`camera stuff
position camera object position x(2),80,object position z(2)-200
point camera object position x(2),0,object position z(2)
loop
Yes, I know it's
quite simple, but hey, it works...
whoops! I thought this was the Code Snippets board, my bad...
"I don't bite her, i just slobber on her" "I remember things as well as a retarded goldfish, who just swam through the chicago river"