Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - rxmarcus

Pages: [1]
1
DOTween & DOTween Pro / Killing a tween, not working?
« on: January 11, 2016, 10:17:15 PM »
I have a sticker book type app that I'm creating. You can touch a sticker and drag it away from its origin position (the sticker follows under your finger), and when you let go, DOTween is used to "spring" animate the sticker back to its origin position.

This works fine but I'm wanting to add polish to this mechanic by allowing the user to touch down on the sticker before its returned to its origin from the DOTween animation and be able to drag it around again. At the moment the sticker stays under control of the Tween and won't follow your finger until the tween completes. To deal with this, I've added a DOTween.Kill(transform) that is called when the finger is touched down on the sticker, but it behaves exactly the same, the animation isn't cancelled it seems.

Any idea what I'm doing wrong or what the right way to go about this might be?

Pages: [1]