Two-key - diagonal walk

0 favourites
From the Asset Store
Perfect for your zombie game! Animated from motion capture data Left, Right, Top Down!
  • Solved!

    First, set up your character animations like this:

    <img src="" border="0" />

    0 = right

    1 = down-right

    2 = down

    3 = down-left

    4 = left

    5 = up-left

    6 = up

    7 = up-right

    You will do this for both idle and running animations, obviously.

    Then set up events like this:

    <img src="" border="0" />

    The first set controls your key movements. The bottom commands control the animations.

    For idle: "idle"&self.a

    For running: ceil(8*(1+Player.8Direction.MovingAngle/360)-0.5)%8



  • 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)