Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / controlling with mouse help

Author
Message
paulhenry
16
Years of Service
User Offline
Joined: 20th Jun 2008
Location:
Posted: 10th Feb 2009 19:01
Many thanks to all who have helped so far,I have a simple crosshair but cant find any tutorials to control it with the mouse,
which is what im aiming for,heres the code so far,any help is appreciated.

rem crosshair
[/code
"
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 10th Feb 2009 21:10
Um, I demonstrated how to do just that in your third thread on the crosshair issue... have you checked that up?

"We know some things about poodles, for example that they are alive, they can bark, they eat meat..."
- Extract from Objects first with Java.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 10th Feb 2009 23:28


Dark Physics makes any hot drink go cold.
paulhenry
16
Years of Service
User Offline
Joined: 20th Jun 2008
Location:
Posted: 11th Feb 2009 15:44
Many thanks,Im going through the process little by little as large chunks of code are difficult to adapt into my program.I have another question,now that the sight appears when the spacebar is pressed could you tell me the technique for positioning the camera from the players line of sight,right infront of the player,object 4 please.

"show object 4
loop object 4,36,56
position object 4,x#, 0, z#

`sync on
`sync rate 60
`color backdrop rgb(0,0,0)
`hide mouse

`autocam off

position camera ???????????

`do
rem clear the screen or you have lots of crosses
`cls
`get mouse x y
mx=mousex()
my=mousey()
rem draw line from x y
line mx-10 ,my ,mx+10 ,my
line mx ,my-10 ,mx ,my+10"

Login to post a reply

Server time is: 2024-11-24 13:07:09
Your offset time is: 2024-11-24 13:07:09