Hi there,
Let’s suppose I have a simple shape. For example, a pentagon shape. Now I want to fill that pentagon with multiple rectangular movieclips, in a way that all the movieclips result in a pentagon. Something like the effect in [this page], but without the rotation on mouse move.
I’ve thought to do it the by following way:
- Making a grid big enought to hold the shape.
- Get a random cell of the grid, and if it belongs to the shape fill it with the next movieclip in the list. If it doesn’t belong to the shape, get another random cell until it gets a correct one.
I don’t know if this way is the best to achieve this effect, maybe too many random random calcs before filling the full shape?
What do you think about? How would you do this? :h: