flash as Q

Out of context: Reply #8

  • Started
  • Last post
  • 41 Responses
  • st33d0

    Box fitting expands until it hits other boxes and then shrinks the box a little. Those movieclips look like they want to be a specific size.

    Don't use hittest. Take the size of your boxes and check overlap at each corner. If you have an overlap at that corner, then you know the direction to push the clip in.

    Then you just let all the boxes shove at each other until all are free of each other.

    If you calculate it based on the clipsize plus a bit extra then you can put a margin around each movie and it will look neater.

View thread