Space Invaders game Like problem

I am trying to make a space invaders like game, and I have a few problems that I have encountered.

If any of you have played the game, I’m sure that you know how the aliens move around on the screen. They go from left to right, down, then right to left etc…

I know how to make them move like that. Here is my problem:

In the real game, whenever you shoot all the aliens in a column on either the far left or far right side, the remaining ones go to the edge, right? Well, whenever I shoot all on one of those sides, it does not do that, but instead just keeps on going as if the object is still in the row.

This problem may be a bit hard for me to explain, but If any of you can figure it out, I would be more than happy :slight_smile:

If you have any additional questions, just ask and I’ll try to give more details.

Here is a space invaders clone project that you can take a look at.

–Eric

That game is really cool, but the scripts for the controls are WAY to complicated for me. :0

Here’s my first approach, off the top of my head:

  1. make them all separate game objects that move via synchronized scripts (or one centralized movement script), and can communicate with each other through BroadcastMessage or SendMessageUpward

  2. place triggers on the left and right sides of the screen, vertically from the bottom of the screen to the top

  3. when one game object touches the trigger, tell all of them to move down a row and start going the other direction

  4. when you blow one up, use Destroy(game_object) to actually take it off of the screen. Then it can’t bump into the trigger!