# Duplicating mc using array

**URL:** <https://forum.kirupa.com/t/duplicating-mc-using-array/159801>\
**Category:** flash\
**Created:** [August 20, 2005, 12:58pm UTC](https://forum.kirupa.com/t/duplicating-mc-using-array/159801 "2005-08-20T12:58:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![3pinter](https://avatars.discourse-cdn.com/v4/letter/3/9de053/32.png) [@3pinter](https://forum.kirupa.com/u/3pinter)\
**Post date:** [August 20, 2005, 12:58pm UTC](https://forum.kirupa.com/t/duplicating-mc-using-array/159801/1 "2005-08-20T12:58:06Z")

</div>

Okay,

I was trying to save positions of duplicated mc’s. Because after some movement the dup. mc’s have to return to it’s original x&y pos.

But I was wondering what is more efficient or better to do:  
create two arrays one for x and one for y?

0001000  
0010100  
0100010  
1000001

would become:  
titlex[4,3,5,2,6,1,7]  
titley[1,2,2,3,3,4,4]

Or create a multidimensional array

0001000  
0010100  
0100010  
1000001

And that’s also the part I don’t understand yet…  
[0001000]  
[0010100]  
[0100010]  
[1000001]

So this is the result using only two arrays  
[http://flashlab.fromthemill.nl/#possave](http://flashlab.fromthemill.nl/#possave)  
(named “Return to your place”)

But could someone give me his or hers thoughts about the multidimensional array?  
Perhaps how it would be done?  
I read sen’s article about isometric’s and he was using it but I think what I would to create is a little bit different.

3Pinter  
😏
