Laggy sprite animation

0 favourites
  • 5 posts
From the Asset Store
3 pixel charaters with over 8 animations each + animations with a gun
  • Problem Description

    When i import a sprite sheet and i set animation speed higher than 10 frames per second + physics behavior the sprite becomes laggy while animating. When the animation stops it's'okay. The problem is gone once the animation speed is less than 10 but well. I don't think it's a performance problem. I think it's the behavior plugin problem

    Steps to Reproduce Bug

    • Make a sprite object on the top of layout and import a sprite sheet. Put animation from 15 to 24 frames per second.
    • Put physics behavior to the object and set world gravity to -10
    • Play the game and check it's laggy

    Observed Result

    Laggy animation

    Expected Result

    Not laggy animation

    Affected Browsers

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

    Operating System and Service Pack

    I use vm but i tested it on mobile and mac os

    Construct 2 Version ID

    165

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Closing, this type of error is usually caused by your hardware

  • fongka2 , i think Ashley should decide that, not you.

    vagaev , i noticed something similar, a long time ago, that only happens if the animation speed of a sprite is higher then your fps/2.5 .

    You should definetely post a capx, where you show that, else Ashley will most likely close it,

    it may be a bug, may not, Ashley probably has a explanation why that happens ready

    How im handling it: If animation Speed != fps/2.5 - set animation speed to fps/2.5 (That way i keep it with 60 fps at a 24 playback rate, (pretty smooth))

  • Closing, please follow the bug report guidelines (attach a .capx illustrating the problem).

  • I will provide a capx asap illustrating the problem.

    Didn't post because it was a commercial project work in progress.

    Thanks SgtConti i will try your method and keep this updated

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