How do I use a loop?

0 favourites
  • 5 posts
From the Asset Store
SynthWave Loop Pack includes 68 seamless loops, founded on 11 original melodies.
  • If I put "Wait ____ seconds" in a loop, why does it NOT wait? See my other post here:

    I would really appreciate any help. I'm getting frustrated with this.

  • The linked tutorial did not work. I want to be able to create waves of enemies, and this tutorial operates under the assumption that I want to create every wave at once on start of layout, which is NOT the case. How do I do this without using "On start of layout"??

    EDIT: Keeping this up for anyone with the same question. Follow the linked tutorial, even if you don't want to start on layout. Make the loop a subevent of the event that triggers it, and put all that under "On start of layout". MadSpy I love you forever

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • you need two variables , lets say , makewave and count .

    makewave=1.........................create object at(whatever)

    every 0.5 secounds...............add 1 to count

    ...................if count = 10..... >makewave=0

    you still need to trigger the makewave

    this will create 10 objects 0.5 seconds apart until count reaches 10

  • If I put "Wait ____ seconds" in a loop, why does it NOT wait?

    They wait. Exactly as they are supposed to do. Not as you expect them do to.

    Lets slow down the loop. At 16h00 (step 1) it commands: wait 10 minutes. At 16h01 (next step in the loop) it says wait 10 minutes. At 16h02 (step 3) it waits 10 minutes. So at what time wil the wait be over?

    For step 1 at 16h10 (10 minutes later then 16h00), for step 2 at 16h11, for step 3 at 16h12. Or 10 minutes later then it gets called.

    Lets speed it up. Lets assume that there is virtual no time between two steps. So what happens ? It waits 10 minutes, and then all the waits are over at the same time. After 10 minutes it fires them all at once.

    I gave you two ways to do this in you original post.

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