How to Start a Timeline at a Specific Time in Seconds in Construct 3?

0 favourites
  • 6 posts
From the Asset Store
An educational game for Times Table. An easy to use template for developers to build larger games
  • Hello, I want to start playing a timeline, not from the beginning, nor on a tag or marker, but at a time that I have defined through a variable. My question is, is it possible to start a timeline at a specific moment without a tag?

    I have seen that you can get information about the time in seconds from the timeline, but can you tell it that once the timeline is launched, it should directly move to the second that I have defined?

  • Have you tried using the Set Time action right after playing a timeline? I think that should do what you want.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • First of all, thank you for your reply.

    When I set the time on the timeline, it works, as I check afterwards with a variable, but my sprite stays at its starting point and doesn't move. My aim is to create a sun that, depending on the time of day, is positioned at a precise point when the game starts.

  • First of all, thank you for your reply.

    When I set the time on the timeline, it works, as I check afterwards with a variable, but my sprite stays at its starting point and doesn't move. My aim is to create a sun that, depending on the time of day, is positioned at a precise point when the game starts.

    + Système: Chaque tick

    // Retrieves and converts hours, minutes and seconds (Variable Seconds)

    -> Système: Définir Variable_Seconde à (TimeSystem.×3600)+(TimeSystem.×60)+Date.ObtenirSecondes(Date.Maintenant)

    -> Texte_Variable_Seconde: Définir le texte à "Variable Seconde:"&Variable_Seconde

    // Add (variable Timeline Soleil)

    -> Système: Définir Variable_Timeline_Soleil à Variable_Seconde

    -> Texte_Variable_Timeline_Soleil: Définir le texte à "Variable Timeline Soleil:"&Variable_Timeline_Soleil

    // Retrieves the position of the sun (Variable Timeline)

    -> Système: Définir Variable_Timeline à Variable_Timeline_Soleil

    -> Texte_Variable_Timeline: Définir le texte à "Variable Timeline:"&Variable_Timeline

  • I see what is going on.

    Set Time changes the timeline time, and it also pauses it there, which means it can be taken out of the pause state using the Resume action.

    In the case of setting the time in the same action block as the timeline is played, the the timeline should start playing from that point in time without the need of explicitly calling Resume.

    I say it SHOULD because it's not doing that! For now you can place a Resume action right after Set Time and it should do what you want.

    I think I will change the behaviour of Set Time because it's a little bit strange that it stops the timeline and it's not very useful either.

  • Thank you very much for your help and speed.

    It works with the resume function right after :)

    For the record, I've been using Construct 3 for years and I find this software wonderful for its simplicity of learning, reminding me of my early days with Clickteam. I say simplicity as a connoisseur, because GameMaker, in the same genre, is much harder to master.

    I'm currently working full-time on a game I hope to release this year on Steam, entitled Sir Abandon, made with Construct 3.

    My question is this: Can I proudly display the Construct 3 logo at game launch or in credits, etc.? Who do I need to ask for permission?

    My second question is: How can I get the game featured on the official Construct website? Who do I contact or apply to for this?

    Best regards,

    RRPG2022

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