1 Reply Latest reply on May 5, 2006 1:09 PM by shyaway

    I need help!

      Hello. I was wondering if anyone could help me with this. I'm creating a fighting game for my final project using flash 8, and I can't get my button to do what I want it to. When I push the button for attack, I want it to play the attack frames for my character. But when I click it, nothing happens. The button and the character are to different movie clips that are attached to the main stage. I have a game programming book, but it doesn't tell me what I need. I may also need help with the A.I. of the opponent, but that won't be for a while. so if anyone could help me with this, I would be very greatfull.
        • 1. Re: I need help!
          shyaway Level 1
          does your attack movie have an instance name?
          if you placed it on stage, you could set the name in the properties tab.
          if you used script to load it. then you get the instance name when loading it with script that you gave.

          if you're using tween with anchor name, you could also use gotoAndPlay("attack"); where "attack" is your anchor name for the first frame of your attack animation.