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 / Weird Problem! Please Help!

Author
Message
SilverKnight
22
Years of Service
User Offline
Joined: 21st Sep 2003
Location:
Posted: 25th Sep 2003 00:43 Edited at: 25th Sep 2003 01:15
Hey Guys!

I have been having a problem with my code... it for moving a model around when the user holds down the mouse button. just trying to get it to move on the y axis right now. when i click on the top of the model it moves fine but when i click on the botton it moves to the top... if i put the cursor farther down the model will then move down... its weird! Is giving me a head ache !

I Hope someone can help me!

Here is the code.

Regards,
Rajavidya SilverKnight
Witch Bomber
23
Years of Service
User Offline
Joined: 25th Jan 2003
Location: Scotland
Posted: 25th Sep 2003 00:53
Not entirely sure what that program's all about but is there supposed to a big lump of code inside a remstart...remend?

The leprechaun tells me to burn things
spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 25th Sep 2003 00:57
You cannot compare mouse coords to screen 3D coords I'm afraid.

Use object screen x to get objects x position and compare that to mouse x position instead

If your mansion house needs haunting, just call Rentaghost!
SilverKnight
22
Years of Service
User Offline
Joined: 21st Sep 2003
Location:
Posted: 25th Sep 2003 01:13 Edited at: 25th Sep 2003 01:14
Spooky: Could You show me an example of how to do that please?
Witch Bomber: Whats in the remstart/remend is for the x Axis.

Regards,
Rajavidya SilverKnight

Login to post a reply

Server time is: 2026-07-25 07:02:04
Your offset time is: 2026-07-25 07:02:04