"On animation finished" triggers

0 favourites
  • 3 posts
From the Asset Store
Game Triggers is as versatile as a Swiss army knife, and will be a great resource for any type of game you're creating.
  • Problem Description

    "On animation finished"-triggered events don't happen within the same frame on some browsers. Works in Firefox, but not chrome, edge/explorer or NWJS.

    Attach a Capx

    http://s000.tinyupload.com/index.php?file_id=46074564502720182522

    Description of Capx

    A sprite animation with colored circles that move upwards plays so to give the illusion of upward motion. The same sprite is moved at the end of the animation and start over so it appears as if the balls continue moving, when in fact its the same sprite.

    Steps to Reproduce Bug

    • Start capx in one of the affected browsers.
    • As the balls reach the small beige rectangles notice now a circle appears to "pop" (for a single frame so keep your eyes peeled)

    Observed Result

    The sprite get its new position before retriggering its animation, even though the events suggest that it should restart the animation and get the new position during the same frame.

    Expected Result

    No poppin but a smooth (though incremental) continuation of the sprite movement.

    Affected Browsers

    • Chrome: YES
    • FireFox: NO
    • Internet Explorer: YES
    • NWJS: YES

    Operating System and Service Pack

    Win 10 pro

    Construct 2 Version ID

    r225 beta, also tested on r221 stable with identical results.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The same in Windows 7, C2 r221, Chrome 49.0.2623.87.

    As a workaround you can set a "wait 0" action before changing the position.

  • Awesome, thanks juani!

    BTW I noticed I could get the same faulty behaviour happening in Firefox as well, but in a different example. Haven't tried reproducing it in a simplified environment like in the attached example, still maybe an indication that somethings's fishy all across.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)