How do I use "wait" within every iteration in a repeat loop?

Get help using Construct 2

Post » Fri Oct 03, 2014 6:48 pm

Hi - probably this is simple - I just don´t get it right... Let me please explain the setting:

There is ~ 200 Sprite Objects (grey4) and a function is called when the game level is reached. I want this function to iterate through all grey4 sprites and move another sprite (cursor) on top from one to the next during every single count iteration and play a short sound, then add 1 to high score if the sprites instance variable "Damage" is 0. Simple.

What I achieved in my code is that all the objects are counted and added to the score all in one go and the sound plays just once. Not exactly what I wanted, I want the function to move the cursor from sprite to sprite and play the sound during every loopindex iteration. I don´t want it to happen in a tick so to speak. Maybe the signal condition outside the function cannot be accessed from within the loop?

Here´s the code:
Image
B
10
S
4
G
4
Posts: 23
Reputation: 3,170

Post » Fri Oct 03, 2014 6:55 pm

You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,708

Post » Fri Oct 03, 2014 7:09 pm

Oh what a shame, I should´ve searched the tuts more thoroughly.
B
10
S
4
G
4
Posts: 23
Reputation: 3,170


Return to How do I....?

Who is online

Users browsing this forum: DharmaOne, namaewayukidesu, Yahoo [Bot] and 14 guests