Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Help with C sharp scripting and complex weapon handeling.

Discussion in 'Scripting' started by Tadbowie, Dec 12, 2015.

  1. Tadbowie

    Tadbowie

    Joined:
    Dec 4, 2015
    Posts:
    3
    Hello. I know absolutely nothing about C#. I'm taking the catlike coding course but I'm having trouble really getting it. I'd like to get into game development and all but I'm having some troubles.

    Anyway, my goal is to, by Christmas, have a complex weapon handling mechanic [yes, like Receiver] implemented in some of my work.

    Anyway, if someone would be so kind as to give me a hand or even point me in the right direction for coding and Unity development, that would be awesome.
     
  2. Sose

    Sose

    Joined:
    Dec 10, 2015
    Posts:
    27
    I don't want to be harsh but if you know absolutely nothing about C#, or programming in general, implementing a complex game by christmas is not a reasonable goal. You should maybe try to look for general C# (not unity related) tutorials, guides or books if you really want to learn C#. You can also try to learn it just by doing things with Unity but the road will be very bumpy.

    I hadn't heard about Receiver before but apparently the devs released the source to it on github. You can go and take a look at it. It's a 7 day project but keep in mind they're very experienced when it comes to gamedev. I haven't looked at it personally but if you want to implement something similar.. It should be a good starting point.

    https://github.com/David20321/7DFPS

    Edit: I took a short peek in the repository out of curiosity.. It's incredible to be made in only 7 days but the code quality probably reflects the time of the project aswell. I didn't go into too much detail but most of it is completely uncommented javascript (or Unityscript) and has atleast one script with 1500 lines of code and another with 1000 (AimScript and GunScript). So as far as learning C#, probably the opposite of where you'd want to start
     
    Last edited: Dec 12, 2015
  3. Tadbowie

    Tadbowie

    Joined:
    Dec 4, 2015
    Posts:
    3
    Yeah, prity harsh but probably needed. What are the benefits of learning C# outside of Unity? I mean, I've done some of the Catlikecodeing stuff, know a little bit about Java and am taking a course in Ruby. Also, I do not, under any circumstances want to use an IDE. Anyway, thank you for the throat-slitting [kidding, kidding]. I'm off to learn some sharp C.
     
  4. Sose

    Sose

    Joined:
    Dec 10, 2015
    Posts:
    27
    The only real benefit is that C# tutorials aimed at only Unity don't necessarily talk about basic programming concepts very well and only explain things related to using the Unity's API. I assumed you were completely new to programming. If you already know Java, then learning to write C# shouldn't be too difficult to grasp as they're quite similar syntax wise etc.

    And sometimes the best way to learn is to learn by doing and making mistakes and learning from those. Also obviously it's more fun to learn by making 3D objects move and interact with eachother :)
     
  5. Tadbowie

    Tadbowie

    Joined:
    Dec 4, 2015
    Posts:
    3
    Very true. Anyway, thanks. You've given me a lot to think about and build upon. While I don't KNOW Java, I've had some passing knowledge with it and yes. Smashing things into each other at high velocity is quite fun. Also seeing things fall though the ground can be hilarious.