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.

DarkBASIC Professional Discussion / Pick screen and using the mouse movement in the y to set distance.

Author
Message
BCIT
16
Years of Service
User Offline
Joined: 26th Jan 2010
Location:
Posted: 20th Apr 2010 18:56
I am looking to move an object along a horizontal plain. I can use the pick screen command to set the x position of the object; however, I want to use the mouse movement in the y to set the distance in the pick screen command. The idea is to use the mouse movement in the x and mouse movement in the y to set the object's x and z. Any suggestions?

Thanks
Benjames8
16
Years of Service
User Offline
Joined: 6th Jan 2010
Location: Your Nightmares
Posted: 20th Apr 2010 21:46
Could't you just set the y mouse movement in a variable then set the z to equal the variable?
pdq
20
Years of Service
User Offline
Joined: 20th Jul 2006
Location:
Posted: 21st Apr 2010 05:38 Edited at: 21st Apr 2010 05:44
Try using the move object command with the mouse movement. For example, use mousemovex() to side step the object and mousemovey() to move the object backward and forward.
BCIT
16
Years of Service
User Offline
Joined: 26th Jan 2010
Location:
Posted: 21st Apr 2010 15:11
Yes, but I want the mouse pointer to track the object. In other words, I want the object to always be behind the mouse pointer.
Indicium
18
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 22nd Apr 2010 01:02
Look into the pick screen command.

Rawwrr. Sig Fail.
Newcastle is awesome
BCIT
16
Years of Service
User Offline
Joined: 26th Jan 2010
Location:
Posted: 22nd Apr 2010 19:36
I got it figured out. I just have to make some adjustments. Here is the code below:



Thanks.

Login to post a reply

Server time is: 2026-07-26 07:35:53
Your offset time is: 2026-07-26 07:35:53