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. Dismiss Notice

I need scripting help

Discussion in 'General Discussion' started by The Royal Apple, Mar 7, 2013.

Thread Status:
Not open for further replies.
  1. The Royal Apple

    The Royal Apple

    Joined:
    Mar 7, 2013
    Posts:
    2
    Hello, I am not sure if this is the right place to ask this but I'm going to any way.

    I am making a fps game for school and I need script. the first one is to make the pistol shoot. This is a flintlock pistol, so it needs to be single shot and once you have shot it needs to go out of the screen for about two seconds and then come back up to shoot. Any help will be appreciated!
     
  2. HolBol

    HolBol

    Joined:
    Feb 9, 2010
    Posts:
    2,888
    Unity support section? Scripting section? Miss those?

    :p

    Also, you need a more informative thread title.
     
  3. dxcam1

    dxcam1

    Joined:
    Feb 6, 2012
    Posts:
    477
    So, you want people to do your homework?
     
  4. UnknownProfile

    UnknownProfile

    Joined:
    Jan 17, 2009
    Posts:
    2,311
  5. Eyeshock

    Eyeshock

    Joined:
    Sep 7, 2012
    Posts:
    60
  6. GrandMasterHsu

    GrandMasterHsu

    Joined:
    Jul 5, 2012
    Posts:
    50
    do a raycast for aiming/shooting (or instantiate a bullet object and fire it)

    have the camera following your mouse

    when fire button is clicked, you can draw a line to make it look like an actual shot.

    you can use a coroutine for it staying out of screen for 2 seconds.

    nobody here is going to do your homework for you. we can give you advices and point you towards it.
     
  7. The Royal Apple

    The Royal Apple

    Joined:
    Mar 7, 2013
    Posts:
    2
    No I just need help I suck at writing code.
     
  8. kablammyman

    kablammyman

    Joined:
    Nov 22, 2010
    Posts:
    507
    you also suck at making threads and doing research. Nobody wants to make your game for you, and nobody wants to do research for you.
     
Thread Status:
Not open for further replies.