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.

Dark GDK / another challenge

Author
Message
i cant believe its not fabio
18
Years of Service
User Offline
Joined: 10th Feb 2006
Location:
Posted: 12th Aug 2007 19:08
While i figure out (i still didn't) how to control my character's animation loops through keyboard, i'm thinking i'd like to focus more on a point-and-click kind of action.

Given an ideal 3D plane and an object (or character), how do i go about having the object point and move at a certain speed towards a clicked XZ coordinate?

I did some reading and there is something about the pick command, but still i have no clue how to use that... did anyone do that successfully?
Jna99
18
Years of Service
User Offline
Joined: 3rd Nov 2005
Location: Portugal
Posted: 12th Aug 2007 19:46
Hi I believe vectors will do the trick, try searching the forum for a way to convert 2D to 3D coordinates, I believe that Miguel Melo post something about it.

CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 12th Aug 2007 20:20
yep youll need vector maths for this.
search the forums, youll find tutorials. even if the code is in dbp youll be able to convert it to whichever flavor of the dgdk youre using

My DBP plugins page is now hosted [href]here[/href]
i cant believe its not fabio
18
Years of Service
User Offline
Joined: 10th Feb 2006
Location:
Posted: 15th Aug 2007 06:54
thanks, i'll give it a try
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 19th Sep 2007 23:01
Did you ever get this working? Mouse click - turn 2d coords to 3d (perhaps you used vectors as suggested...)???

Login to post a reply

Server time is: 2024-09-29 03:23:08
Your offset time is: 2024-09-29 03:23:08