movie clip creates a particle

1 view
Skip to first unread message

mo

unread,
May 13, 2008, 4:14:21 PM5/13/08
to APE General
i would like to be able to place a number of rectangles on the stage
and have each rectangle create a RectangleParticle where it has been
placed on the stage. i want to lay out movie clips on the stage that
will dictate the creation and position of particles from APE that i
need.

creating a bunch of APE particles in code with specific positions is a
long tedious procedure, especially when i will want the flexibility to
try out different layouts of rectangles on the stage quickly. does
anyone have any suggestions on how to go about this task? i'm stumped.

thanks.

pault107

unread,
May 14, 2008, 6:39:34 AM5/14/08
to APE General
You could place your rectangles MCs on the stage by hand, make sure
each MC is named mc1, mc2, mc2. Then put references to the MCs into an
array, create a for loop that traces out the properties you're
interested in (x, y, rotation etc). Then you can move the rectangles
about by hand until your happy with the positioning. Then, take the
final trace values and update your APE code.

It's not very programattic, but it gets around the problem of updating
the APE code, compiling, damn out by three pixels, update, compile
again etc.

Hope that makes sense.
Reply all
Reply to author
Forward
0 new messages