-
Taking movieclip from library and giving it an instance name through code?
I am making a game where I reference "Player_mc" quite a lot. I have a bunch of full characters (movieclips) in the library that work as the player when put on the stage and referenced as "Player_mc". I need a code that can reference those characters (movieclips) in the library, and move them onto the stage and name them "Player_mc". Also I need a way of removing an existing "Player_mc" so that another character can be referenced and brought onto the stage as "Player_mc".
Here is what I have:
if (this.P1Character==(Whatever that character's number is)){
Do what???
}
-
Senior Member
theres an article which would benefit you greatly from reading.
link: Click Here
-
And it did! Genius. Worked like a charm. Thanks
-
Senior Member
i'm glad i was able to help
theres some really good and helpful articles there.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|