[behavior] Twixt - A lightweight tween

Post your work in progress addons and get feedback

Post » Fri Aug 08, 2014 2:35 pm

shinkan wrote:Thanks!
and like always some requests ;)
1. Action to stop tween (You can start, reset, reverse and pause only)
2. Debugger State value. I really like what you did in debugger, showing all available values is powerful. But for better visual sake could State show names instead of numbers? Like Start instead of 1, or Pause for 2 :)


Good suggestion on State in debugger. I'll do the same for Tweened, as well.

What do you mean by a stop action? How would it differ from pause?
B
8
S
2
Posts: 55
Reputation: 616

Post » Fri Aug 08, 2014 3:15 pm

If you are moving from point A to point B and you pause in the middle - You actually did not reach the end of your tween. If you press start again you will continue previous motion until you reach the end. In this case "Start tween" works like a "Resume current tween".
While stopping the tween will mark your current position as the end position. Pressing Start should not do anything until you set new target.

Don't know... maybe I'm overthinking this.

And one more expression could be useful - "Current time". To return how many time, in seconds have passed from start of the tween. For example if your tween duration is set to 7 seconds. It will return value between 0 (start of the tween) and 7 (end of tween)
This could be a nice addition to stack things up. Or do something else at very specific time of the tween.

Sorry for all this requests (moaning about) but this plugin is so nice and so simple to use. I've been using it for last few days and it saves me already a lot of time.
ImageImageImageImage
B
157
S
66
G
42
Posts: 2,603
Reputation: 35,343

Post » Fri Aug 08, 2014 4:02 pm

shinkan wrote:If you are moving from point A to point B and you pause in the middle - You actually did not reach the end of your tween. If you press start again you will continue previous motion until you reach the end. In this case "Start tween" works like a "Resume current tween".
While stopping the tween will mark your current position as the end position. Pressing Start should not do anything until you set new target.

Don't know... maybe I'm overthinking this.

And one more expression could be useful - "Current time". To return how many time, in seconds have passed from start of the tween. For example if your tween duration is set to 7 seconds. It will return value between 0 (start of the tween) and 7 (end of tween)
This could be a nice addition to stack things up. Or do something else at very specific time of the tween.

Sorry for all this requests (moaning about) but this plugin is so nice and so simple to use. I've been using it for last few days and it saves me already a lot of time.


No need to apologize. It's good to have feedback and I'm glad you're already finding it useful. :)

On both of these points, it's starting to get outside of how I intended the tweens to work. However, I think you could approximate both by using existing functionality. For your "stop" action, you could pause the tween and then re-configure it to the new values. For the "current time", you could chain multiple tweens with the on end conditions. (I might consider mid-tween conditions at some point, but it would be a bit complicated to implement.)

One note of caution on making use of Twixt in its "in progress" state: things could break at any time! (Or, indeed, already be broken.) I don't recommend it yet for production use. But if you do, be sure to back up before you install a new version! Hopefully I'll have it hammered out enough for a 1.0 release in a few weeks.
B
8
S
2
Posts: 55
Reputation: 616

Post » Fri Aug 08, 2014 4:16 pm

Meet 0.5, which tweaks the debug Tweened and State to use their text equivalents. :)
B
8
S
2
Posts: 55
Reputation: 616

Post » Sat Aug 09, 2014 6:45 pm

And 0.53, with some bug fixes.
B
8
S
2
Posts: 55
Reputation: 616

Previous

Return to Work in Progress Addons

Who is online

Users browsing this forum: No registered users and 0 guests