Can animations be chained?

28 views
Skip to first unread message

chip siskey

unread,
Sep 28, 2018, 2:28:03 PM9/28/18
to Crafty
I'd like to have animations/tweens that run in succession.

For example, say you have a roulette wheel: startspinwheel, slowspinwheel, stopspinwheel, each one starting with the previous one stops.

My attempts at doing so include dot-chaining

this.animate('startspinwheel').animate('slowspinwheel').animate('stopspinwheel');

as well as multiple lines (which could run into a processing problem)

this.animate('startspinwheel');
this.animate('slowspinwheel');
this.animate('stopspinwheel');

what's the best way to achieve this?
Reply all
Reply to author
Forward
0 new messages