Delay start time?

Forums General Discussion Delay start time?

This topic contains 3 replies, has 2 voices, and was last updated by  Gavalakis 2 days, 11 hours ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2624

    dharry
    Participant

    I am moving a few objects around the screen and that is all working fine. But I want to wait 5 seconds before moving the first object. I tried using the Wait node but can’t seem to get it to work.

    Is that the best node to use or is there a better one?

     

    Attachments:
    You must be logged in to view attached files.
    #2627

    Gavalakis
    Keymaster

    Hello,

    Adding the Wait node after the Update will make the Wait node be called once per-frame and will basically queue every call made to it. The Wait node (and similar nodes that “take time to complete”), work by queuing the calls in a way that once a loop is “finished” the next loop will begin.

    Do you indeed want to move the objects per-frame (in Update). If yes, do you want to simply delay 5 seconds before you begin moving the objects? If so, you could use a Switch Condition node and check if Time is greater or equal to 5, like this:

    Wait5

    Is that what you want to achieve by any chance?

    Let me know 🙂
    Thanks!

    Join us on Discord: https://discord.gg/97q2Rjh

    Attachments:
    You must be logged in to view attached files.
    #2629

    dharry
    Participant

    That’s perfect! Thank you – I was looking at it all the wrong way really 🙂

    #2630

    Gavalakis
    Keymaster

    You are very welcome. I am glad I could help 🙂

    Join us on Discord: https://discord.gg/97q2Rjh

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.