sword attack doesn't work good

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hi guys, such problem. I have a hero for my game, so I have platform movement object. My hero has movements on the right and left and jump. So I added 2 sword attack but I can't do this right. I tried Upon pressing a key and attack animation plays at once very fast, so I tried Repeat while key is pressing and while I'm pressing on the button attack animation plays even when hero's moving and animation continues to play.

    What I need when I pressed on the button at once animation will plays one time one second, or when I pressed on the button repeating animation will play on loop while I hol the button.

  • You can set the speed of your animation in the properties where you load the animation - under Direction Options - there's a block for speed - just change that until your animation plays at the speed you want it to. If you tick the button "loop" then the animation will play continuously - at the speed you set.

    When you start changing animations with the platform movement object you have to manually change them back.

    For example, if the player is attacking and you set flag 1 on:

    When Flag 1 is on, change animation to attack
    When Flag 1 is off + Flag 2 is off, change animation to walk
    When Flag 2 is on, change animation to jump

    Then as your player performs the actions set the flags on or off.


    The mouse and joystick have commands - when a button is pressed - do something
    and also
    Repeat while button is pressed - which means it will continue to do something - as long as your animation has the "loop" button ticked - then the animation will loop continuously with this command.

    Casual games: Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!