Search Unity

scripting space invaders

Discussion in 'Scripting' started by abethedarkness, Mar 4, 2010.

  1. abethedarkness

    abethedarkness

    Joined:
    Nov 2, 2009
    Posts:
    8
    hi im making a space invaders type game, and im trying to figure out how to make only the bottom row of aliens the only ones who can shoot in a group of 5X11 so that if you destroy an alien the one behind will start to fire or instantiate a bullet. but only when there are no other alien game objects in front of it.
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401