Search Unity

Need Help Making My First Game.

Discussion in 'Getting Started' started by xDNIDxGamingx, May 6, 2016.

  1. xDNIDxGamingx

    xDNIDxGamingx

    Joined:
    May 5, 2016
    Posts:
    10
    As the title clearly states, I need help making my first game. I am completley new to the world of game design
    but i have managed to figure a few things out.

    (This is an Fps game by the way)

    Basically i have messed around with a few things. and watched a few tutorials which kinda helped but not really.
    I know how to design my levels so thats not a problem. other than getting my character to go up stairs and ladders. but im guessing that is in the scripting which is mostly what i need help with as i am new to coding of any kind.

    any help will be greatly appriciated. and for those who do help me will recieve credit in my game.
    once i figure out how to make a credit screen..LOL
     
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    There's yer problem. Watching tutorials never helps anybody much. You have to actually do the tutorials. That means follow along, on your computer, recreating what the tutorials are showing you step by step.

    Only that leads to understanding. Simply watching them is a waste of time.
     
    xDNIDxGamingx likes this.
  3. xDNIDxGamingx

    xDNIDxGamingx

    Joined:
    May 5, 2016
    Posts:
    10
    Thats what i meant by watching them. sorry i was unclear about that. i have been trying to find a good tutorial series to teach me how to do this instead of mis matched tutorials made by different people everyone does things differently. Basically i just want to learn how to create everything myself from scratch without having to use any assests or prefabs made by someone else, because to me if its prebuilt you are not really learning to build it your self. I know it will take me longer to finish the game but i dont mind because my ocd wont let me launch it until everything is exactly how i want it..
    Call me obsessive but thats the way it has to be.
     
  4. Iron-Warrior

    Iron-Warrior

    Joined:
    Nov 3, 2009
    Posts:
    838
    I wrote a series of tutorials for beginners that are very minimal in what parts of Unity are used. They build a TPS rather than an FPS, but if you want fine control over how your game turns out you'll have to learn how to write every part of it anyways.
     
    Kiwasi and xDNIDxGamingx like this.
  5. xDNIDxGamingx

    xDNIDxGamingx

    Joined:
    May 5, 2016
    Posts:
    10
    Thank you Iron-Warrior. I will be sure to check out your Tutorials as I am sure they will help me out alot.
    right now im in the process of making a Prefab package of my own.
     
  6. boolfone

    boolfone

    Joined:
    Oct 2, 2014
    Posts:
    289
    I have a book from Sam's that helps you learn Unity:

    Unity Game Development in 24 Hours, Sams Teach Yourself
    https://www.amazon.com/Unity-Develo...hours unity&qid=1462586445&ref_=sr_1_1&sr=8-1

    It pretty much contains an FPS but without really the shooting.

    It is one of those 24 hour books. Each chapter is supposed to take an hour or less.

    I'm hoping to maybe go through it real carefully with the latest version of Unity.
     
    xDNIDxGamingx likes this.
  7. xDNIDxGamingx

    xDNIDxGamingx

    Joined:
    May 5, 2016
    Posts:
    10

    Thank You!
     
  8. QFSW

    QFSW

    Joined:
    Mar 24, 2015
    Posts:
    2,906
    Really the best way is to dive in. Open up Unity and start making something; you get stuck? then go do a quick google search, almost all beginner issues can be solved with this
    Just keep trying things, you'll get far better that way then by watching tutorials etc; when it comes to your real game you arent gonna have a step by step guide :)
     
    xDNIDxGamingx likes this.
  9. xDNIDxGamingx

    xDNIDxGamingx

    Joined:
    May 5, 2016
    Posts:
    10
    Yea that is true. really the only thing i need help with at the moment is scripting. other than that im good.
     
  10. QFSW

    QFSW

    Joined:
    Mar 24, 2015
    Posts:
    2,906
    Practice programming then; it doesnt have to be Unity specific, the skills transfer
    Imo what's most important is not sitting around reading or watching tutorials, but actually jumping in and trying to code things
     
  11. xDNIDxGamingx

    xDNIDxGamingx

    Joined:
    May 5, 2016
    Posts:
    10
    Ok Guys thanks for all your help i Appreciate it...
    QFSW, I took your advice and jumped right into Programming. Im working on a shooting script right now and so far as is everything i have in it works. now im trying to figure out how to make the Current Bullet Amount reset when the clip is empty but i want it to reset by pressing a button Like reload button. any body know how i can do this.. here is my script its in C#.
     

    Attached Files:

  12. xDNIDxGamingx

    xDNIDxGamingx

    Joined:
    May 5, 2016
    Posts:
    10
    oops acciedently posted twice
     
  13. xDNIDxGamingx

    xDNIDxGamingx

    Joined:
    May 5, 2016
    Posts:
    10
    Nevermind on that last bit after a little more tinkering around with the script i actually figured it out myself. thanks guys.
     
  14. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    Glad you figured it out. For next time, please be sure to post your code using code tags.

    Cheers!
     
  15. xDNIDxGamingx

    xDNIDxGamingx

    Joined:
    May 5, 2016
    Posts:
    10
    Code (CSharp):
    1. using UnityEngine;
    2. using System.Collections;
    3.  
    4. public class Shoot : MonoBehaviour {
    5.     public int MaxBulletCount = 20; //Max Bullets Per Mag
    6.     public int MinBulletCount = 0;
    7.     public int CurrentBulletCount; // Current Amount of Bullets
    8.     public int MaxMagCount = 10;  // Max Mags Carried
    9.     public int MinMagCount = 0;
    10.     public int CurrentMagCount; // Current Mags Carrying
    11.     public int MagBulletCount = 20;
    12.     public int BulletPower = 2000; // Power or Speed which Bullet Shoots
    13.     public int BulletDamage = 10; // Damage Bullet Deals
    14.     public bool EmptyMag;// If mag is Empty
    15.     public bool OutOfAmmo;
    16.     public Rigidbody BulletPrefab; // Bullet
    17.  
    18.     // Use this for initialization
    19.     void Start () {
    20.         CurrentBulletCount = MaxBulletCount;
    21.         CurrentMagCount = MaxMagCount;
    22.         EmptyMag = false;
    23.         OutOfAmmo = false;
    24.     }
    25.    
    26.     // Update is called once per frame
    27.     void Update () {
    28.    
    29.         if (Input.GetButtonDown ("Fire1"))
    30.             CurrentBulletCount --;
    31.  
    32.         if (CurrentBulletCount <= 0)
    33.             EmptyMag = true;
    34.        
    35.         if (CurrentBulletCount > 0)
    36.             EmptyMag = false;
    37.  
    38.         if (EmptyMag == true)
    39.             CurrentMagCount = CurrentMagCount-1;
    40.  
    41.         if (CurrentMagCount < MaxMagCount && CurrentBulletCount <= 0)
    42.             CurrentBulletCount = MagBulletCount;
    43.  
    44.         if (CurrentMagCount < 1)
    45.             OutOfAmmo = true;
    46.  
    47.         if (OutOfAmmo == true)
    48.              CurrentMagCount = MinMagCount;
    49.  
    50.         if (CurrentMagCount < 1)
    51.             CurrentBulletCount = MinBulletCount;
    52.         }
    53.     }
     
    JoeStrout and MikeTeavee like this.
  16. xDNIDxGamingx

    xDNIDxGamingx

    Joined:
    May 5, 2016
    Posts:
    10
    i forgot how to actally fire the bullet lol
     
  17. mathiasj

    mathiasj

    Joined:
    Nov 3, 2015
    Posts:
    64
    I'd highly recommend to learn coding first, then learn game development. Game development on its own is hard enough and you shouldn't try to learn two hard things at once instead of first focusing on one thing, then focusing on the other.
    But well, that's just my opinion.