Wait loopindex error
It's simple, in a Repeat Cycle, I create 1 sprite in each iteration, on a different location depending on the loopindex. But when I put wait loopindex * 0.5 before creating them, then it does not work.
Attach a Capx
Description of Capx
The "Game" event sheet calls 2 functions to create the sprites. "AgujeroNegro" creates a black ball and you'll see it created a random number of ligh blue balls around them.
The other function "BolaAmarilla" creates a yellow ball. This one you must click them 5 times to call the functions that doesn't work.
When you've clicked 5 times the function "BolaAmarillaTouch" in the "Acciones juego comunes" event sheet.
Just try deleting the wait loopindex * 0.4 and it works well, but with the wait action the other small yellow balls are not created.
I don't understand it because the function "AgujeroNegro" in the event sheet "Acciones juego comunes" does the same but with different sprites, and it works perfectly.
Steps to Reproduce Bug
Wait until a yellow ball appears in the screen. Click it 5 times and I should appear small yellow balls.
Nothing is created with the wait action
Small yellow balls should appear close to the original yellow ball.
- Chrome: (YES/NO)
- FireFox: (YES)
- Internet Explorer: (YES/NO)
Operating System and Service Pack
Windows 7 64 bits
Construct 2 Version ID