Search Unity

2D and C# - at a loss

Discussion in '2D' started by Skyefate, Dec 10, 2015.

  1. Skyefate

    Skyefate

    Joined:
    Dec 10, 2015
    Posts:
    1
    I'm not sure if this is allowed, since this is a very general question, but I was wondering whether anyone could point me to the basic scripting tutorials/walkthroughs.. you name it. For uni, it's all about 2D programming lately and I'm awful at programming. Don't understand a thing. I'm all for the art and the graphics and have the abilities to create those, but my scripting skills are abysmal at best.

    If you don't really know any specific good scripting tutorials for C#, perhaps you could help with this - I need to have the player character instantiate a bullet and to have that bullet travel forward. When it touches an enemy, the enemy dissipates. I can't find any basic scripts for this, though.

    I'd be grateful if anyone had any ideas!
     
  2. Prototypetheta

    Prototypetheta

    Joined:
    May 7, 2015
    Posts:
    119
  3. Browdaddy96

    Browdaddy96

    Joined:
    Aug 27, 2015
    Posts:
    82
    Go on youtube and find Sebastian Lague. He has a phenomenal 2D platformer tutorial he uses ray casting and might be a little to fast in which case I recommend Gucio Devs(again on youtube).
     
  4. Gnatty

    Gnatty

    Joined:
    May 17, 2012
    Posts:
    76
    Why not try the tutorials on this site ...

    http://unity3d.com/learn

    I think the Space Shooter tutorial might be closet to your requirements.
    But all of them will help in some way.
     
  5. Prototypetheta

    Prototypetheta

    Joined:
    May 7, 2015
    Posts:
    119
    I can vouch for Seb, he's certainly done me a lot of good, however if you are new his methods might be a bit too advanced. When you are a little more comfortable scripting looks Sebastian Lague up for some insight into more advanced scripting.
     
  6. Browdaddy96

    Browdaddy96

    Joined:
    Aug 27, 2015
    Posts:
    82
    That is why I added gucio devs. But Sebastian has improved my programming skills tenfold
     
  7. tedthebug

    tedthebug

    Joined:
    May 6, 2015
    Posts:
    2,569
    The unity learn section is good. If you scroll down there are specific 2d tutorials using sprites, but you can also use 3D & lock the axis & set camera to orthographic as well.