[SOLVED] Making Attack Button to Untouchable Until Attack Animation Finished

ParsSOParsSO Member, PRO Posts: 16
edited May 2015 in Working with GS (PC)

Hello;

I'm trying to make close fighting system(with sword) and i need help about this. How to making button untouchable until my animation is finished? I want this because when i press two times to attack button, animations are snarling. (I have 3 type of attack animations.)

My attack button;

When the button is pressed;

  1. Change Attribute: attack to true (attack is a global attribute. It's type is integer.)
  2. Change Image: To my button's hover style. (Its another image.)
  3. Change Attribute: AttackAnimation to AttackAnimation +1 (I have 3 type of attack animation, that's why this improves. When the AttackAnimation is 3, the value of AttackAnimation changes to 0)

I was try to timer but, it's not working. After this button i will try to make close fighting system with sword. May anyone help me about this problem please? Thanks.


And let me know please if my problem question is confusing. If its confusing, i'll try to edit this post. :)

Comments

Sign In or Register to comment.