need help with animation setup [FIXED]

0 favourites
  • 1 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • in CC i have

    + Player: Angle Equal to 0
       + MouseKeyboard: Key Right arrow is down
            -> Player: Set animation to "Walk"
       + MouseKeyboard: On key Left arrow pressed
            -> Player: Set animation to "Turn"
       + MouseKeyboard: On key Up arrow pressed
            -> Player: Set animation to "Up"
    
    + Player: Angle Equal to 180
       + MouseKeyboard: Key Left arrow is down
            -> Player: Set animation to "Walk"
       + MouseKeyboard: On key Right arrow pressed
            -> Player: Set animation to "Turn"
       + MouseKeyboard: On key Up arrow pressed
            -> Player: Set animation to "Up"

    in C2 there's no animation by angle so i made it like this

    + Player: Is animation "Stop_Right" playing
       + Keyboard: Key Right arrow is down
            -> Player: Set animation to "Walk_Right"
       + Keyboard: On key Left arrow pressed
            -> Player: Set animation to "Turn_Left"
       + Keyboard: On key Up arrow pressed
            -> Player: Set animation to "Up_Right"
    
    + Player: Is animation "Stop_Left" playing
       + Keyboard: Key Left arrow is down
            -> Player: Set animation to "Walk_Left"
       + Keyboard: On key Right arrow pressed
            -> Player: Set animation to "Turn_Right"
       + Keyboard: On key Up arrow pressed
            -> Player: Set animation to "Up_Left"

    Everything in part 1 works fine - can move right, turn to left and up_right,

    Part 2 is activated when sprite animation "Turn_Left" finish.

    but when sprite turns left i can only play "Walk_Left" animation - turn to right and up_left not responding after pressing keys.

    there's no debbuger so i made simple text object to show animation names, and all works fine except "Turn_Right" and "Up_Left" while sprite is faceing left direction.

    Edit: All i have to do is to set everywhere

    "Keyboard: Key "key name" is down" instead of

    "Keyboard: On key "key name" pressed".

    Works perfect now.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)