Animations stop playing at frame 0 while speed is negative

0 favourites
  • 4 posts
From the Asset Store
Selection frame like in RTS games, works both on mobile and desktop devices.
  • Problem Description

    When setting a sprite animation speed to a negative number to play backwards, the animation stops at frame 0 even if "loop" is set to YES for the animation.

    Attach a Capx

    https://dl.dropboxusercontent.com/u/403350/ReverseAnimationBug.capx

    Description of Capx

    Tap to make animation play backwards.

    Steps to Reproduce Bug

    • Step 1 Tap to make animation play backwards.

    Observed Result

    Animation stops playing at frame 0

    Expected Result

    Animation to keep playing in reverse

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer Edge: (YES)

    Operating System and Service Pack

    Windows 10 64bit

    Construct 2 Version ID

    R211

  • The way the animation speed works is the animation speed declares how many frames you view a second. If the speed is 5, you would then view 5 frames a second. Zero is zero frames per second. You cannot have a negative frames per second.

  • I'm not sure that Scirra programmed the usage of a negative animation speed, this is why the frame stop at 0 and not going to the last one.

    A little workaround to make it work:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It is actually working correctly given the way it's currently designed: when the animation loops it goes back to the "Repeat to" frame, which is frame 0. This restarts the animation when playing forwards, but sticks it at the end when playing backwards.

    We're due a stable release soon and this is not a regression, so I won't fix this for the next build. However I'll leave the report open and figure out something for the next beta cycle (I guess a "set repeat-to frame" action would do it).

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