How do I toggle (pause/resume) timeline properly?

0 favourites
  • 4 posts
From the Asset Store
Toggles Dials Switches and Alerts ! A foundational sound grouping of Analog type switches and Steampunk effects
  • Hi!

    I try to pause/resume a timeline on a key pressed event, but I have some troubles with timeline selection..

    My goal is to tagging master keyframes with the "pause" tag (where the timeline stops), and resume it with a key press.

    The issue is that when I try to select the timeline by this tag, it doesn't find it.

    If I'm using pause without tag, it's working, cause I selected the timeline with the "on keyframe reached" event, but I can't resume it, because I don't know how to select it. Any idea to solve this? Thank you!

    Not working:

  • I think I have the correct solution.

    The pause/resume etc. timeline tag is not a keyframe tag. When I play a timeline, I can flag it with a tag on the timeline play modal, and the pause/resume method needs this tag.

  • The tag you can give when you play a timeline is used to identify it later on with the the pause/resume and stop actions, as well as with the "on complete" trigger conditions that accept a tag.

    The tag you can give to keyframes is used for the keyframe reached trigger condition that accepts a tag, so you can do something when a specific keyframe is reached.

    They are not related.

    Can you explain how you were expecting the tagging to work?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks for the reply!

    My goal is to pause the timeline, if someone speaks in the given "scene". For that, I'm using the keyframe tag option. It works like a charm. In that moment, I show the user some text, and I want some action from the user, to resume the timeline. I want to give enough time, to read it. And for resuming the timeline, I have to identify it somehow. My process now is when I start playing the timeline, I give a tag for it, and I store that tag in a global variable. After the timeline reaches the keyframe where someone starts to speak, I pause the timeline, and in a key pressed event, I resume it with the timeline tag, what I gave it before. After the timeline completes, I clear the global variable.

    My original problem was that I didn't understood what tag the resume method needs. But it works now :)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)