Timer trigger in loop with function Bug

Report Construct 2 bugs here.

Post » Fri Oct 14, 2016 10:18 pm

Problem Description
Timer triggers are allowed to be ran inside loops, because it might trigger multiple instances at the same time and therefore require looping through them.
However, if the trigger calls a function that is in a loop, then it throws an error.
For organization purposes, it is useful to stick functions inside loops near similar groups of events- however this bug prevents that in this case.

Attach a Capx
https://1drv.ms/u/s!AhHSZHEulqh_gXH0D8NmsLl2cZHn

Description of Capx
timer trigger inside loop calls function in same loop.

Steps to Reproduce Bug
  • view event sheet and run game

Observed Result
error

Expected Result
no error, it should call the function and change the text.

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

Operating System and Service Pack
vista sp2

Construct 2 Version ID
r237
B
47
S
22
G
65
Posts: 1,127
Reputation: 38,395

Post » Tue Oct 18, 2016 11:33 am

The problem is you're not allowed to put a trigger condition inside a loop. The bug is that the editor allows you to set up the events like this when it should be blocked.
Scirra Founder
B
399
S
236
G
89
Posts: 24,543
Reputation: 195,430


Return to Bugs

Who is online

Users browsing this forum: No registered users and 0 guests