Tally List : mailing list management, archiving, and analysis
click for archive home
 
Archive of:
Flash
Macromedia Flash List
 
home
24 hour view
quick stats
weekly updates
 
all tallylists
corporate solutions
archive your favorite
help / feedback


Search the Tallylist search by keyword:

About Flash :
product's home
product's list home
 
  Archived TallyList / Flash: 
Subject: Hit test Help
Andrew Le Sage (26p/+0r)     Posted: Friday 11 May 2001
This post: 47 views, +0 rating

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


Similar Subject Line Posts (+/- two weeks of this post)
Hit test Help  11 May 2001 (this post)   (47 v/ +0 r)
 

Send a reply to the Flash list!
click to send a reply! NOTE: Many lists will reject your post unless you have already registered with them. Also - don't forget the right account to send from (for those with multiple emails!)

Feedback: If this post was exceptionally helpful, please help by giving this post a positive review.

 

TallyList : copyright Ububik - 2000