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.

Author
Message
DB newbie
19
Years of Service
User Offline
Joined: 13th Nov 2005
Location: um..... i dont remember.
Posted: 19th Apr 2006 06:10
Does anyone have a code for draging an object like for a modeller. for example you click and hold the mouse button on the cube then the cube follows the pointer and when you release the left mouse button it sets the cube were the pointer is.
and if you have code is it for DBC?

visit my site (unfinished)
www.freewebs.com/dbnewbie
Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 19th Apr 2006 06:15
There is an example (the pick object example) in DarkBasicPRO which does something similar to what you want.



Insanity is just a state of mind
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 19th Apr 2006 06:49
This took me forever to find. 3D modeller challenge, starting on page 52.

http://forum.thegamecreators.com/?m=forum_view&t=48011&b=1&p=52

Pretty much every entry had some form of mouse-object control. I'm pretty sure we all used DBP, so codes may or may not work in DBC, depending on how the mouse was projected to the plain.


Relativity
19
Years of Service
User Offline
Joined: 29th Mar 2005
Location: Position is relative.
Posted: 19th Apr 2006 18:34
Try this: http://darkbasic.thegamecreators.com/?m=codebase_view&i=5b819e962c313e6ec482e89422b3c573

It's the only one I know of for DBC. Should do what you want.

Login to post a reply

Server time is: 2024-11-27 21:48:29
Your offset time is: 2024-11-27 21:48:29