Smooth attack animation then resume animation.

0 favourites
  • 6 posts
From the Asset Store
3 pixel charaters with over 8 animations each + animations with a gun
  • Hello.

    I've pretty much just started using Construct and everything so far has worked out pretty good. However I ran in to a problem the other day which I can't figure out how to solve.

    This is what I have:

    Walking animation with 4 frames.

    Jumping animation with 1 frame.

    Falling animation with 1 frame.

    Also I have a shooting animation with 6 different frames.

    I would like to be able to blend in to the shooting animation and then resume the walking animation.

    <img src="http://i44.tinypic.com/9ljzv6.png" border="0" />

    How would I go about to blend in tot he correct shooting frame and then back to the walking?

  • So you have a shooting animation (where he is walking) and then just a regular animation too...

    Ok so, I suppose you could do this:

    local variable: frame_preserve

    on shoot --> set frame_preserve to player.animationframe

            --> set animation to "shooting"

            --> set animation frame to frame_preserve

    local variable: frame_preserve2

    on stop shooting --> set frame_preserve2 to player.animationframe

                     --> set animation to "walking"

                     --> set animation frame to frame_preserve2

  • I must be daft. Can't seem to find how to make a local variable. I know the global variables and have used them quite a lot.

  • I must be daft. Can't seem to find how to make a local variable. I know the global variables and have used them quite a lot.

    You need a subevent to add a Local variable <img src="smileys/smiley2.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Not sure if I've set this up correctly. The player goes in to the shooting animation but slides around as if always playing frame 1 of the shooting animation.

    <img src="http://i43.tinypic.com/x5bkue.png" border="0" />

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