Home Technical Talk

FPS GAME IN UNITY

polycounter lvl 5
Offline / Send Message
sunny fernando polycounter lvl 5
Hi everybody,

I am Sunny and I am new to Polycount.Great forum.Just a quick question i am near finishing my studies and as my last project I am suppose to produce a working game.So I choose to develop a FPS game kind a like Serious Sam.And I am using Unity as my desired game engine.So my question is how do I go about setting up the FPS controller with the hands.I have already modeled the hands but I am not sure hoe to set up the cameras for the FPS view,the gun and where should I spawn the bullet from.And how to set up the muzzle flash.Is there a good tutorial that I can follow.It would be great if it is with coding preferably c#.

thanks

Replies

  • Farfarer
    Offline / Send Message
    Farfarer polycounter lvl 17
    You'd be better off asking those sorts of questions over at the official Unity forums;
    http://forum.unity3d.com/

    This is a forum that focuses mostly on game artwork, not game programming.
  • gsokol
    Offline / Send Message
    gsokol polycounter lvl 14
    Can't say to much from a programming standpoint...but:

    To setup the camera for fps view, you could start out with a first person controller prefab...which is in the standard assets folder in the project directory. Then you make the arms children of the prefab..with them positioned where you want to see them in front of the camera.

    As for where you spawn the bullet from..you can import the gun mesh seperately, with it centered at origin, or maybe have the barrel be at 0,0,0...or whatever you want. Then when you bring it into unity, if you have your gun at 0,0,0 as well, you can figure out where the bullet should spawn, then throw an empty game object on the gun, and move it to the position you need it in. As long as the script is placed on the gun which has a relative position at origin, the bullet spawn will be offset as well.

    Hope that helps you out.
  • walreu
    Good start would be to check out this tutorial:

    http://unity3d.com/support/resources/tutorials/fpstutorial.html

    If i remember right, all those assets are free to use, even commercially in your own projects.
    Remember to google too and search from youtube..
  • sunny fernando
    Offline / Send Message
    sunny fernando polycounter lvl 5
    Thnaks a lot guys
Sign In or Register to comment.