0 Favourites

How do I Call Animations

  • Hello All,

    I'm at wits end here.

    I have a platform character with several animations I would like to call with both a xbox controller and keyboard

    Either they don't play or I can only get the first frame of the animation to play.

    What I've tried:

    1) setting the animation to a Boolean and trigger when true

    2) Creating function to call the animations.

    Character is pinned to a dummy sprite.

    Any advice would be great, I can't figure this out on why they wont load fully.

  • Can you upload the capx?

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • I just figured it out.

    So here's the deal: for every action there need to be not Xaction for every animation.

    The one that knocked out all of my animations out was a jump attack.

    For the keyboard: P_ is jumping, X moving, X on floor, X playing jump attack, is falling and Space pressed = function(jump attack)

    For Xbox controller: P_ is jumping, X moving, X on floor, X playing jump attack, is falling, X pressed Y, and "X" is pressed = function(jump attack)

    I'm almost done with this If you still want I'll post the capx so other can follow a platform with attack sprits and multiple controls.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
1,941 263,384
FlyingRam's avatar
FlyingRam
Unread hot topic
99 10,159
karshinkoff's avatar
karshinkoff
Unread hot topic
56 4,736
MPPlantOfficial's avatar
MPPlantOfficial