Tween requests
The Tween scripts are great, but I've got a few feature suggestions:
* Loop Count: When selecting looped or ping-pong, it would be handy to specify the loop count
* Callbacks: It would be nice to have an option to have a callback event for when an tween completes, perhaps using the name of the tween as the function?
* Pause: I'd like a Tween type that does nothing. Sure, I Can from/to the same coordinate, but a "pause" tween type with a time would make this a lot cleaner and less error prone (I want to use this for chained tweens that need pauses)
* Chained Tween Simultaneous: I'd like an option to have some tweens execute sequentially, others simultaneously. Maybe you can have Tween groups somehow, and group them by all at once, or sequential and then put those groups in chain order?
Hi Ralph,
Thanks for the suggestions! We'll have our engineer take a look at what's possible and add these to our Feature Requests.
Cheers,
Neha
Hi, Ralph!
Those are great suggestions! We'll take them into consideration!
For now they are actually can be implemented using several lines of code or even better - with a Behavior script, that was designed for different complex interactions
Here's what you can use for now:
1. For the loop count try using this:
2.There are several ways to set up callback at the and of the tween.
- starting tween via javascript :
- also the Behavior script allows you to call a custom trigger( or any other response) when tween has finished.
And you can assign any amount of responses for this custom trigger - thus make actions execute sequentially or at the same time.
Start another tween on first tween ended:
3. For the pause maybe delay property on a tween script could help?
4. Tween Chain Script has a parameter called "All At Once" what runs all tweens at the same time.
You can keep it disabled for sequential tweens and enabled for simultaneous tweens.
Please check out a project with examples if needed
Thank you!
Olha