Weapon follow through

Hey Everyone,

In my game I have my actor swing a sword and other swinging weapons. Here is my issue, if the user taps the sword button it just plays a part of the animation, and only plays the complete animation if the button is held down. How do I make it so it plays the entire animation even when button is tapped.

Comments

  • SLOCM3ZSLOCM3Z Member Posts: 797
    edited October 2015

    Use a boolean. When button pressed :do: game.SwingSword true. Then have your animation in this, if game.SwingSword = true :do: animation, timer ( put this timer in the do section) after:(however long your animation is) change attribute game.SwingSword false. This is how I would do it. But I'm new still and there is probably a better way to do it :) Hope it works for you!

  • quinn221quinn221 Member Posts: 280

    @jdlcrater THANKS..IT WORKS!

  • SLOCM3ZSLOCM3Z Member Posts: 797

    @quinn221 said:
    jdlcrater THANKS..IT WORKS!

    Cool! Glad I could help

Sign In or Register to comment.