vendredi 21 avril 2017

How to clone an object in as3

I'm quite new to as3, but the game I'm making requires the use ofclones. How would I make them (I know it involves using the child thing but I don't know how to make them)? I also need to make a function that sets their location to random places on screen, how would I do this? I'm not sure how i would refer to the clone's x and y locations without it moving all 50 of them. Thanks

Aucun commentaire:

Enregistrer un commentaire