Hi, I am new here. I am trying to solve a problem that I have to deal with. I want to strarts a timeline only when the other timelines are finished playing. The user would click random buttons which starts a timeline.
Let's say button 1, timeline 1
button 2, timeline 2
etc...
if 1 and 2 and all the others are finished playing then start the timeline Final.
I searched the forum for an answer but nothing works on my side.
Please help!
Hype Power Pack requires installing an export script. There is also Hype Bundles.. but that is probably overkill.
Hype Action Events (just added data-timeline-complete-action) also allows code execution and can be used for simple conditions, but just using a JavaScript function is the most straightforward solution (and it’s built in).
you can built a timeline that plays along with other timelines that only holds a progess.
you continue this timeline when another timeline is played. the progresstimeline will have numered stopps and when it's finished you can play the resulting timeline ... no scripting at all just managing your hypefile
I wonder how, I gave an action on mouse up continue (current) and on mouse down timeline 5 (which is the one that holds the progress) but it seems to restart the timeline 5 at the begining.
Here is a version that doesn't use any code whatsoever… just continues timelines as Hans suggested. I love how one can just use timelines for state management. Indeed, great @h_classen (had to give it a try for myself).