Be a Supporter!

referring to duplicated movieclips?

  • 158 Views
  • 1 Reply
New Topic Respond to this Topic
Tyroge
Tyroge
  • Member since: Aug. 5, 2008
  • Offline.
Forum Stats
Member
Level 03
Blank Slate
referring to duplicated movieclips? Jan. 6th, 2013 @ 06:27 PM Reply

I want to make a topdown zombie shooter, everytime you shoot a new movieclip is attached but, I need to refer to these attached movieclips in the code of the zombies, how do I do that?
If I had 1 single bullet it could be refered to as if(this.hittest(bullet)){this.health -= 1}
but I have multiple bullets that all have different instance names

I understand if it's hard to understand what I'm asking, because I don't really know how to phrase it, sorry :/

Sayanee
Sayanee
  • Member since: Dec. 15, 2012
  • Offline.
Forum Stats
Member
Level 24
Blank Slate
Response to referring to duplicated movieclips? Jan. 8th, 2013 @ 03:29 AM Reply

Is there anything that helps in AS3: Main? The most up-to-date list can be found at the end of the thread. There are also a couple of links to older AS: Main threads in the first post, which contain more tutorials. Hopefully one of those will help.

As you are asking how to do something within Flash (assuming you are here), which isn't related to animation, your question should have been asked in the Flash forum instead. If you can't find anything that helps in AS: Main, then re-ask your question there.