x


moving gun in first person shooter while walking

Hi, Glacier Entertainment and Studios (c) here, well my studios and I are new to unity and are creating an FPSMMORPG, we have everything set up, but now we are getting more into the detailed area. When in first person view, I see my gun but it is completely static. This looks very ugly and I would like to fix/ change it. Another thing is reloading. When the gun reloads it just pauses fire for a few seconds and moves on, how would I create an animation for the hands/ gun to look as though I am reloading. I do plan on making profit on this game so I am taking this very seriously ( also I am taking my time with this project, I am still learning about Unity and it's components so dont criticize to badly!... please).

       Thankyou, 
      Codex1770c
more ▼

asked Mar 09 '10 at 01:07 AM

Codex1770c gravatar image

Codex1770c
62 6 7 9

(comments are locked)
10|3000 characters needed characters left

8 answers: sort voted first
more ▼

answered Jun 03 '10 at 05:00 PM

Epic gravatar image

Epic
98 6 6 13

Dastardlybanana has amazing weapon tutorial. It completes many features weapons need

Jul 08 '10 at 09:10 AM TaigaStudios

Getting their package will save you many hours of work. Their code is easy to understand and learn from

Jul 07 '12 at 03:10 AM Linus
(comments are locked)
10|3000 characters needed characters left

As you're apparently in First Person View you could do with creating a few bones for the player arm (if hand is visible give it a mesh as well), animate this arm, attach the gun to the hand, and you're set. If you have option to view yourself in third person (or other players), you could as well give your character a complete skeleton and of course a body/mesh.

Basically, look at the animation demos, and imagine attaching the camera to head of the puppet, if your body is never in sight, you can optimize performance a bit by turning off the meshrenderer of your player (or put it in a layer you don't draw with your camera).

more ▼

answered Mar 09 '10 at 03:27 AM

Jaap Kreijkamp gravatar image

Jaap Kreijkamp
6.4k 20 26 70

(comments are locked)
10|3000 characters needed characters left

yeah I was thinking of that too, but what if he wanted to have multiple weapons?... oh I know, I have a different arm for each weapon!!!

more ▼

answered Mar 09 '10 at 10:56 PM

Codex1770c gravatar image

Codex1770c
62 6 7 9

(comments are locked)
10|3000 characters needed characters left

um... If you wanted to make a SINGLE PLAYER, you could get the first person player file off of unity3d. I have no clue how to help you with MULTIPLAYER.

more ▼

answered Apr 14 '10 at 10:53 PM

Not showing my name gravatar image

Not showing my name
107 8 9 19

(comments are locked)
10|3000 characters needed characters left

You could make a single character model, and put ALL weapons in his hand, but only render one at a time. I'm working on a crazy fighting game, and that's what I did. Each character controller has almost 100 items to them, from guns to swords to grenades. wings. but it only renders when I tell it to in-game. The whole renderer.enabled: Boolean thing is a life-saver!

more ▼

answered Jun 17 '10 at 03:56 AM

88bueno gravatar image

88bueno
10 5 8 8

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1175
x446
x329
x207
x68

asked: Mar 09 '10 at 01:07 AM

Seen: 4066 times

Last Updated: Jul 07 '12 at 03:10 AM