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 / How to get real 3D world position (to move my character same as in online games)?

Author
Message
sobhanallah
15
Years of Service
User Offline
Joined: 1st Aug 2009
Location:
Posted: 1st Aug 2009 18:09
Like in online games, using the mouse to move your character (and also a mark that will show you where it will move), I want to do the same, but I don't know how to get 3d coordinate from 2d screen coordinate.
anyone familiar with dark GDK commands can help?
Note: I just started developing with dark GDK
Matty H
15
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 1st Aug 2009 22:34
dbObjectScreenX(int object)
dbObjectScreenY(int object)
Drowneath
15
Years of Service
User Offline
Joined: 22nd Jun 2009
Location: In your eyes
Posted: 2nd Aug 2009 05:38 Edited at: 2nd Aug 2009 05:39
Say you have a terrain with an ID of 101.
Then in the main loop,


Then later you can simply use the x, y, and z

Login to post a reply

Server time is: 2024-10-01 08:42:14
Your offset time is: 2024-10-01 08:42:14