Timer is not started when not created with Create object

0 favourites
  • 3 posts
From the Asset Store
2D fighting template based in the game that defined the fighting games genre.
  • Problem Description

    Timer is not started when inside event other than Create object

    Attach a Capx


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

  • Try Construct 3

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

    Try 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)