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.

Newcomers DBPro Corner / Another question sorry

Author
Message
Delta Games
19
Years of Service
User Offline
Joined: 28th Aug 2005
Location: U.K
Posted: 6th Dec 2005 19:31
Sorry about all my questions but its the only way I will learn.
I want to use the mp5 in DARK MATTER for a gun in first person view. I am currently useing a textured cylinder. How would I go about useing the MP5 instead.
thanks

Delta Games studio
Big Man
19
Years of Service
User Offline
Joined: 4th Feb 2005
Location: BEHIND YOU!!!! (but I live in England)
Posted: 6th Dec 2005 19:36
Take a look it should work.



it should place the gun to the bottom right corner of the screen.
Play around with positioning and scaling baring in mind that the order of the commands is object number,X,Y,Z.

If you get this I could show you how to make it look like the player is walking when you move forward by moving the gun and camera.

BM

Our aim is to keep the loo's clean, your aim can help.
Delta Games
19
Years of Service
User Offline
Joined: 28th Aug 2005
Location: U.K
Posted: 6th Dec 2005 20:23 Edited at: 6th Dec 2005 20:37
Got that to work thanks
could you show me how to make it look like the gun is moveing when the player moves
the gun also shoots balls

Delta Games studio
Big Man
19
Years of Service
User Offline
Joined: 4th Feb 2005
Location: BEHIND YOU!!!! (but I live in England)
Posted: 6th Dec 2005 20:46 Edited at: 6th Dec 2005 20:47
Sure

First you need two variables


don't ask me how it works it just does.(These variables are inside the main loop.)

You then need to add this piece of code to your moving forward code.
(Again in the main loop)

it should work like this



to make the camera move from side to side like you are walking do this.


Bare in mind that the X#,Y#,Z# are just what I have called the coordinates and you should just add them to what you have put.

oh and heres a cool effect

this will make it look like you are breathing. (once again add to the main loop)


Again play around with this code till you get the result you like.

Hope it all is understandable(If not ask) and I hope it helps.

BM

Our aim is to keep the loo's clean, your aim can help.
Delta Games
19
Years of Service
User Offline
Joined: 28th Aug 2005
Location: U.K
Posted: 6th Dec 2005 20:57
thanks you have realy helped my game

Delta Games studio
Big Man
19
Years of Service
User Offline
Joined: 4th Feb 2005
Location: BEHIND YOU!!!! (but I live in England)
Posted: 6th Dec 2005 21:08
your welcome and I hope your game goes well.

Ask if you need any more help.

BM

Our aim is to keep the loo's clean, your aim can help.

Login to post a reply

Server time is: 2024-09-24 11:24:24
Your offset time is: 2024-09-24 11:24:24