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.

3 Dimensional Chat / [LOCKED] fps mouse aim

Author
Message
Fa1con
17
Years of Service
User Offline
Joined: 20th Aug 2007
Location:
Posted: 2nd Nov 2007 02:46
okay so im working on an fps shooter i know how to make walls, bulding that kind of thing. but im wondering how do i make it so i aim where my mouse is? here is my code for fps so far


is it possible to do this without changing the code too much? is there any easy way or just a way

thanks,
hessiess
17
Years of Service
User Offline
Joined: 30th Mar 2007
Location: pc!
Posted: 2nd Nov 2007 03:25
wrong forum

learn blender, you will never regret it.
Fa1con
17
Years of Service
User Offline
Joined: 20th Aug 2007
Location:
Posted: 2nd Nov 2007 03:29
what forum shoudl ti be in?
Fa1con
17
Years of Service
User Offline
Joined: 20th Aug 2007
Location:
Posted: 2nd Nov 2007 05:02
its not in the wrong forum at all
gbark
19
Years of Service
User Offline
Joined: 14th Oct 2005
Location: US - Virginia
Posted: 2nd Nov 2007 05:06
3D chat is more for 3D modelling, not 3D game design... This kind of thing would normally go in either the DBP or DBC board.

To answer your question, you'd want to change your player's x-angle according to the function MOUSEMOVEY(), and your player's y-angle according to MOUSEMOVEX(). Sorry I don't have an exact code for this, but that's the gist of what you need to do anyway.
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 2nd Nov 2007 09:20
Locking this because it's in the wrong forum, and it would be locked there anyway due to the title.

Don't take this the wrong way, please repost it in the Code Snippets section and specify the language (DBPro or DBC) in the title.

We're going down... in a spiral to the ground...

Login to post a reply

Server time is: 2024-11-26 02:33:57
Your offset time is: 2024-11-26 02:33:57