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.

DarkBASIC Discussion / How to position a gun for a FPS

Author
Message
Travis Gatlin
14
Years of Service
User Offline
Joined: 14th May 2009
Location: Oxford, Alabama
Posted: 22nd Mar 2010 23:57
i cant figure out how to rig a gun for a First person shooter game, what is something to look at to at least get the gun to show up on the screen like im holding it.

Google.com. Nuff Said
chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 23rd Mar 2010 00:57
Just positioning the gun in the x y z of the camera, and moving the gun slightly to the right and down, then force the gun tu rotate in its y angle , the same quantity as the camera.
ThereĀ“s onother way to get that...just lock the gun on the screen with the command of LOCK OBJECT ON obj.

Cheers.

I'm not a grumpy grandpa
Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 23rd Mar 2010 00:58
Hmmm...........well travis, there should be a game in the myproj folder included with DB Called Iced. Great game, very good to learn from. There is also a FPS monster hunt tutorial on thegamecreators tutorial site......

(\__/) HHAHAHAHAHAH!
(O.o ) / WORLD DOMINATION!!!!!!!!!!
(> < )
pictionaryjr
15
Years of Service
User Offline
Joined: 12th Mar 2009
Location:
Posted: 23rd Mar 2010 05:43
Example code i used a long time ago to help someone else. Still works:



Travis Gatlin
14
Years of Service
User Offline
Joined: 14th May 2009
Location: Oxford, Alabama
Posted: 25th Mar 2010 00:13
ok ill try that

Google.com. Nuff Said

Login to post a reply

Server time is: 2024-04-26 11:27:46
Your offset time is: 2024-04-26 11:27:46