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 / 2 Questions Regarding a RPG

Author
Message
heyufool1
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location: My quiet place
Posted: 22nd Mar 2009 17:54 Edited at: 23rd Mar 2009 02:16
Hey! I want to make a simple RPG to get the basics then expand onto much more. So right now i have one question:

How could I make my character point at the mouse? (Think Diablo 3) I don't want the character to rotate on the X or Z axis just the Y axis. So how are some ways to do this?

(I'm not necessarily asking for code just a method on how to do these things, although code is appreciated!)

Thanks in advanced!
silenus
15
Years of Service
User Offline
Joined: 4th Mar 2009
Location:
Posted: 22nd Mar 2009 18:07
Watch this, is about Limbs. How to add weapons or anything else to your object. There is also a downloadlink for the code
http://www.youtube.com/watch?v=hi5R0WRiJus&feature=channel_page
heyufool1
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location: My quiet place
Posted: 22nd Mar 2009 18:11 Edited at: 23rd Mar 2009 02:15
Sweet! Thank you very much! Now for question 2.
CheatCat
17
Years of Service
User Offline
Joined: 7th Mar 2007
Location: Sweden
Posted: 2nd Apr 2009 11:12
What question 2?
Point object to the mouse?
You must count the Y angle based of Mouse X and Mouse Y.
I think you must you COS, TAN and/or SIN to do this. I am very bad at math..
Reflux
15
Years of Service
User Offline
Joined: 25th Feb 2009
Location:
Posted: 2nd Apr 2009 17:28
Hey man. I'm also working on a RPG game... Got most of the mechanics sorted out.. To point the object at a mouse location is simple.. All i did was get the 3D position of the mouse click (obviously the right click) and pointed the object to that position before I moved it using dbPointObject(int, MouseHitX, TerrainHeight, MouseHitZ ). Hope this helps.

Login to post a reply

Server time is: 2024-09-30 21:26:39
Your offset time is: 2024-09-30 21:26:39