0 Favourites

Timer is not started when not created with Create object

  • 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

  • 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).

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • Thanks, it works, I thought that disabling a bullet behavior will also reset/disable all related properties.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
378 33,276
part12studios's avatar
part12studios
Unread hot topic
167 14,513
DMT2005's avatar
DMT2005
Unread hot topic Locked topic
115 17,215
Kyatric's avatar
Kyatric Construct Team Support