Timer is not started when not created with Create object

Bugs will be moved here once resolved.

Post » Sun Jul 09, 2017 12:22 pm

Problem Description
Timer is not started when inside event other than Create object

Attach a Capx
https://www.dropbox.com/s/v9lcfzv1w253bq5/TimerBug.capx?dl=0

Description of Capx
On mouse click bunch of objects are created, when clicked with left mouse button Timer is set when certain condition is met, when clicked with right mouse button, Timer is set with Create object. Only in second case the Timer is executed.

Steps to Reproduce Bug
  • Create objects with Timer behavior
  • Start Timer on some conditions other than when creating object

Observed Result
Objects created with left mouse buttons are not destroyed. In debug view instances of objects do have Timer created, but not started.

Expected Result
In both cases Timer Should have started and the created objects should have been destroyed.

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

Operating System and Service Pack
Windows 10 Pro

Construct 2 Version ID
C2 r245
C3 r44
B
58
S
9
Posts: 22
Reputation: 3,953

Post » Sun Jul 09, 2017 2:14 pm

The problem is that the the timer IS starting, repeatedly. Event 7 is constantly being called because the condition is always true once the distance requirement has been met. Just add distance = 1000 after starting the timer, and you'll see that it works. You always need some way to turn off your condition, once that condition has been met (if you don't want it to keep triggering).
ImageImageImage
B
71
S
21
G
231
Posts: 3,688
Reputation: 129,352

Post » Sun Jul 09, 2017 2:36 pm

Thanks, it works, I thought that disabling a bullet behavior will also reset/disable all related properties.
B
58
S
9
Posts: 22
Reputation: 3,953


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest