Search Unity

Auto targeting missile test!

Discussion in 'Made With Unity' started by half_voxel, Mar 7, 2008.

  1. half_voxel

    half_voxel

    Joined:
    Oct 20, 2007
    Posts:
    978
    Hi.

    I was making my game that is well a copy of another game so i thought it was boring to do so, so i have tested to make it a shooting game instead, Tell me if you like it. (press E to fire). Warning bugs all the time.

    http://arongranberg.com/unity/marbles_shoting.html
     
  2. EducaSoft

    EducaSoft

    Joined:
    Sep 9, 2007
    Posts:
    650
    Is there a way you could tell us how it works ?

    I don't see what I have to do in your game.

    "E" shoots SOMETHING to SOMETHING else, but nothing happens :(
     
  3. half_voxel

    half_voxel

    Joined:
    Oct 20, 2007
    Posts:
    978
    well if you look at the screen you can see the symbols of target1 target2 etc.
    And over the symbols there are green life meters. The missiles are programmed to move to the nearest target and if it hits the life meter goes down by 10 (100 in the start). I will soon come up with a less buggy version.
     
  4. half_voxel

    half_voxel

    Joined:
    Oct 20, 2007
    Posts:
    978
    oh and target 5 if up in the air so that one is very hard to hit.
     
  5. EducaSoft

    EducaSoft

    Joined:
    Sep 9, 2007
    Posts:
    650
    Well I couldn't hit anything
     
  6. half_voxel

    half_voxel

    Joined:
    Oct 20, 2007
    Posts:
    978
    what? Do you see the target icons? if not there is a serious bug in my game.
     
  7. KlaRo115

    KlaRo115

    Joined:
    Feb 24, 2006
    Posts:
    675
    It's working great!
     
  8. hai_ok

    hai_ok

    Joined:
    Jun 20, 2007
    Posts:
    193
    Nice work. I like the way the missiles find the targets.
     
  9. forestjohnson

    forestjohnson

    Joined:
    Oct 1, 2005
    Posts:
    1,370
    I feel like the missiles should go for the target nearest to directly in front of the player, with distance used to break near-ties.

    I like the effects and motion, but they can be improved still. I would look at some real world examples of good explosions in games and try to mimic them, and try to make a better control scheme and camera set up (With missile targeting indicators!).
     
  10. half_voxel

    half_voxel

    Joined:
    Oct 20, 2007
    Posts:
    978
    I tried with the missiles targeting objects that are in front of the player before i did this (2 hours before) but i couldn't make it work, but then i also had a "little" bug so that bug can have ruined it. I will try again.
     
  11. half_voxel

    half_voxel

    Joined:
    Oct 20, 2007
    Posts:
    978
    oh and BTW can i use OnGUI when i have no camera attached to the gameObject ?