0 Favourites

How to set a sprite to an image point

  • Here's how I accomplished this...

    I have an animation that travels the distance of about 120 pixels.

    <img src="http://network.mugenguild.com/balthazar/gallery2/HurricaneKick.gif" border="0" />

    I have it so the animation sprite is pinned onto a box sprite. So when the kick animation above is finished, it goes back to the box which is still placed at the beginning of the animation, instead of the last remaning position of the animation.

    What needs to happen, for fluidity purposes, is the player box should be positioned to a new image point, located at the end of the animation.

    This is done by

    [On Animation "Attack" Finish] ==> Set |Player Position| to |AnimationSprite (image point 1)|

    This started off as a question, but I answered my question before I could post haha     Here's a dumbed down version of something I'm working on for the sake of an example.

    dropbox.com/s/w6tg92cpfmbvxnr/Fluent%20Animation%20Example.capx

  • So you placed the player(platform) sprite to the player Image sprite image point at the end of the animation yeah?

    Did it work?

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • Yup! I uploaded the capx so anyone can see. This makes it much easier for my artist and I to get the animations working smoothly. He can make a well made animation that spans an area, and I can import it in and make it work without making my character look like he's sliding across the screen.

    What I'll have to do is, while the animation is playing, disable the player block and enable the sprites collision boxes instead, only during the animation. Then create collision boxes that are only around the player within the canvas (since the canvas is much bigger than the individual sprite image)

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