I'm in the process of creating a game. I'd like my main character to be able to programmatically equip weapons/armor whatnot. He has a hand that if I manually edit a sword into, the animation works fine, however I don't want him to start with a sword equipped.
Unfortunately I can't access an instance of this hand because it's only present for 10 frames during the attack animation. If I set an instance name for the hand in the timeline (Frames 110-120) I can't refer to it from the character class.
Is there a way to access my "arm" class and programmatically add my sword sprite to the associated movieclip without having an accessible instance of the arm class? I've considered swapping out the arm movieclip for one with a sword already added - but I run into the same problem of not being able to access an instance which is only present during some of the frames.
I've tried to make my question as clear as possible, hopefully it worked. Thank you very much for any insight you can provide.
.visible
property as needed. – BadFeelingAboutThis