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 / need help!

Author
Message
steel gollum
17
Years of Service
User Offline
Joined: 30th Jan 2007
Location:
Posted: 29th Mar 2007 19:21
Is there a code I can use to make my object move by clicking the mouse where i want to go like in a RPG? If there is please tell me how or if you could just give me the code, I would apprecieate it very very much.
Blobby 101
18
Years of Service
User Offline
Joined: 17th Jun 2006
Location: England, UK
Posted: 30th Mar 2007 00:42 Edited at: 30th Mar 2007 00:43
to do that it would mean setting up a 3d mouse.
to do that you would have to do a loop in which it checks for mouse position x and y and then detects for a mouse click. when it detects the mouse click it would save the x and y mouse positions and then move the player to the point: saved x as x position and saved y as z position. this means that the higher the mouse y is, the further back your player goes.


thanks to deathead for the sig!
Projects: alien abductor-5%
Blobby 101
18
Years of Service
User Offline
Joined: 17th Jun 2006
Location: England, UK
Posted: 31st Mar 2007 11:12
well, can you figure out what to do from that or not?


thanks to deathead for the sig!
Projects: alien abductor-5%
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 2nd Apr 2007 06:14
... or even give us a clue as to what version of DB you are using (as the sticky at the top of this board clearly states).

The answer to your question is different depending on which you are using.

TDK_Man

Login to post a reply

Server time is: 2024-09-25 19:17:11
Your offset time is: 2024-09-25 19:17:11