Hi Guys
I am working on a puzzle where I have 100 pixel square MC's They have a button in them which when press gets the X and Y value and adds 100 pixels so the MC moves. But I have IF statements so that if by moving a HitTest happens the MC returns to its original place. No it works fine when I have just one IF but I have 16 other MC's and a border which is made of another 4 MC's. I need every one of the 16 MC's to only move if it does not hitTest with any of the other MC's. This means that there needs to be allot of IF's and HitTests. However I find as soon as I put and else If or another IF in I get unpredictable results.
So what I need to know is can I do one IF and Hitest and instead of naming one MC can use some kind of wildcard to include all other MC's.
It is a simple game which you will have all seen, a square made of plastic with 12 or 16 smaller squares inside it but there is One but missing so you can move One bit at a time and then the next bit until they are all in the correct place. Difficult to explain but you will all have seen it.
Anyone help
A
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The Chinwag site carries a wealth of Flash resources. Find useful links, suggested reading and archives at:
** http://www.chinwag.com/flasher ** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ You are subscribed to flasher as: flash@tallylist.com To unsubscribe, email leave-flasher-479872H@lists.chinwag.com