How do I make the player shooting while walking?

From the Asset Store
Basic Rounded Vector Geometry Player Design with Glow for 3 player games
  • Hello, so I am trying to make my player shoot and while he is not moving the shooting animation runs just fine, but while walking the shooting animation only plays one frame, then it goes to the walking animation. Please help

    My code is something like this:

    PlayerBox, on stopped > Set animation "to Idle"

    PlayerBox, on moved > Set animation to "Walk"

    On left button clicked > Set animation to "Shoot"

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Give PlayerBox a boolean instance variable, we'll call it Shooting.

    PlayerBox, on stopped & PlayerBox is not Shooting > Set animation to "Idle"

    PlayerBox, on moved & PlayerBox is not Shooting > Set animation to "Walk"

    On left button clicked > Set Shooting to True

    PlayerBox is Shooting > Set animation to "Shoot"

    Playerbox animation Shoot has finished > set Shooting to False

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