Wait error in Repeat Cycle

Bugs will be moved here once resolved.

Post » Mon Jun 23, 2014 7:59 pm

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
https://dl.dropboxusercontent.com/u/234 ... nodon.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.

Observed Result
Nothing is created with the wait action

Expected Result
Small yellow balls should appear close to the original yellow ball.

Affected Browsers
  • Chrome: (YES/NO)
  • FireFox: (YES)
  • Internet Explorer: (YES/NO)

Operating System and Service Pack
Windows 7 64 bits

Construct 2 Version ID
Posts: 42
Reputation: 649

Post » Wed Jun 25, 2014 2:48 pm

Closing, please follow the bug report guidelines and don't use third party plugins (this one uses Pode iframe). Your .capx attachments should be new projects made from scratch demonstrating solely the problem being described. This is particularly important since the 'wait' action is commonly misunderstood and does not suspend all event execution; make sure you're clear on how it works.
Scirra Founder
Posts: 24,923
Reputation: 198,694

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests