"Wait x Milliseconds" ?

This forum is currently in read-only mode.
  • Would it be possible to add this to the "System" object sometime in the future? In addition, "Wait x Ticks"?

    It wouldn't pause the action on the screen, it would simply wait a designated amount of time after the previous event before processing the next one. You can probably do the same thing right now with a timer, but I feel like a "Wait" command would be faster and easier to remember.

    -Thanks!

  • + Trigger once While True

    + Every X Miliseconds

    Done or you could just do a "Compare time" with delta of your current time

  • Ah, thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Not sure what you're getting at here, but the Function object has a "Call function after delay" action. So if you want to play a sound 2 seconds after you press spacebar, you can call function "play sound" after 2000ms. And you definitely don't want to wait a number of ticks, otherwise your game becomes framerate dependent.

  • I didn't actually need a "wait x ticks", I just mentioned it because there was already a "every x milliseconds" and a "every x ticks". To be honest, I wasn't even sure if "ticks" was the same thing as "frames"...

    Anyway, thanks for your suggestion as well, Ashley.

  • Not sure what you're getting at here, but the Function object has a "Call function after delay" action. So if you want to play a sound 2 seconds after you press spacebar, you can call function "play sound" after 2000ms. And you definitely don't want to wait a number of ticks, otherwise your game becomes framerate dependent.

    Thanks! i've been looking for a way to do that! If it could be added later it would also be nice to have an action like that in the system object so you could just ad to an event -wait 2000ms.

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