The question before the feature request( Tween behavior)

1 favourites
  • 6 posts
From the Asset Store
Calculate parabolic trajectories and tween objects over them.
  • For Sprites, would it be possible to add frames as a property?

    It really would be easier to use for animations.

  • You want to tween frames in a long animation? You can use Tween Value, and set frame number to the value.

  • Yeah, I know, but it would be much easier, and it's a feature you would expect anyway.

    Who ever heard of not being set up to reverse frames, or easing an effect?

    Then again adding that to animations rather than Tween would make even more sense I guess.

  • I never thought about tweening animation frames. It's an interesting idea, especially for playing animation in reverse, but still doesn't seem like something I would need very often. So I would just use Tween Value for that.

  • Coincidentally this feature has been added to Timelines, and will be landing at the start of the next beta cycle.

    It was implemented by means of the "initial frame" property of the Sprite plugin. This means a timeline will interpolate the value of that property and assign a new frame as the timeline progresses. There will be a few things to look at for when using it.

    Because the timeline will be changing the frame of the animation, the plugin itself will not be playing the animation, so all triggers and conditions that the plugin would normally execute, will not happen. Instead you will need to rely on similar triggers and conditions on the timeline itself.

    The only exception to this, is the On frame changed trigger that the sprite plugin will execute while being animated by a timeline.

    Furthermore, attempting to play a Sprite animation normally while it's current frame is modified by a timeline will result in strange behaviour. So it will be a case of picking one or the other, but not both.

    I doubt this will be added to Tweens, it is a rather specific behaviour and while it is possible to implement it, it would be a pretty ugly monkey patch.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ok, that sounds reasonable. Thanks!

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