PDA

View Full Version : Get properties of a movieclip beside a movieclip


johosher
02-29-2008, 05:54 PM
Is there any way that i can get the properties such as the identifier of a movieclip that is next to another movieclip? im trying to detect if the same type of movieclip is next to itselft. and im making a snood type game

rrh
02-29-2008, 07:04 PM
There's another thread about a Snood-type game. (I would have called them Bust-a-Move or Puzzle-Bobble type games.) In that one, he names all the movie clips according to their position, so you can find the movieclips beside them by adding or subtracting numbers.

You could do a similar thing by storing references to the movieClips in arrays that represent their position. Without any sort of position listing, you could cycle through all the movieClips until you find one that hitTests positive to the position right next to it, but that would be more of a load on the processor.

johosher
03-01-2008, 08:31 PM
ok thanks! im fairly new at all of this stuff so is there any way you can go into a little more detail on that?