Problem with attack process

  • First post - new topic. <img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarrassed" /> Sorry, but i don't know what to do, and i'm getting frustrated.

    So, when i press the attack key(D) while running "Slash" animation plays too fast and incomplete/fuzzy, and the player can't move despite "On animation finished - Stop ignoring user input".Then, when pressing the attack key again the "Slash" animation runs two(?!) times and he can move again.Obviously, the player should stop moving during the attack animation.

    Any help would be appreciated.

    drop (connect "drop" and "box")

  • Instead of ignoring the user input when "slash" plays, try disabling the platform behaviour and then re-enable it when the animation finishes.

    PS Dig that artstyle. Something about it just feels really fun.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Okay I think there are 2 problems. First, check your slash animation. There seems to be a mix-up with the frames. I think the first 3 frames in that animation should be deleted. That's why the animation seems fuzzy.

    Second problem: When you are running and you press D, event number 11 fires (which is correct) and the platform stops because of user input ignored. So far so good. But because the platforms stops, event number 5 is also fired. Event number 5 says "play idle animation". Event number 11 says "play slash animation". Two animations at the same time, thats why it doesn't animate properly.

    Solution: Add the following condition to event number 5:

    So now event number 5 only fires when animation slash is not playing.

    I've made those two changes and now it works properly.

    Edit: Add the condition not only to event 5, but also to events number 6,7 and 8.

  • okay strangeDays tried way harder than me on that.. Go with his answer.. I rescind mine.

  • strangeDays

    Thank you very much for helping me out! I feel embarrassing how simple it looks now.


    Glad that you like it. I've been learning pixel art for the last few months.


Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)