A simple game lagging tremendously on sprite animation

0 favourites
  • 5 posts
From the Asset Store
20 high quality click sounds, ready to improve your game's UI instantly
  • I am a new on construct2. I have attached my simple game. here the bird flies on the mouse click.

    But as the flying animation starts, the game lags too much. The fps is 55-60 all the time.

    the lag can be observed on the parallax background.

    I dont know whether its fault of my GPU or i have written a buggy game...

    So, kindly help me please.

    dropbox.com/s/2k3n56gr4yy7t1x/test.capx

  • I am a new on construct2. I have attached my simple game. here the bird flies on the mouse click.

    But as the flying animation starts, the game lags too much. The fps is 55-60 all the time.

    the lag can be observed on the parallax background.

    I dont know whether its fault of my GPU or i have written a buggy game...

    So, kindly help me please.

    https://www.dropbox.com/s/2k3n56gr4yy7t ... .capx?dl=0

    Please remove non-standard behavior by Zed2100 or users may not be able to help.

    I'd also recommend testing with the latest release as many bugs have been fixed since the version you are using.

  • dropbox.com/scl/fi/u17mohvz3smjw91/test.capx

    This is the capx without any non-standard behaviors...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Here it is fixed in the way you started: https://drive.google.com/file/d/0BwT_0lczDpc9Vndva1ktMlgtUnM/view?usp=sharing

    But just FYI, it is not the best approach for a flappy bird. You should use platform behaviour for the bird instead of physics (physics are much more CPU consuming, so use it only when you really need physics behaviour). Also background should move infinitely and player should remain in one position (X position I mean). So you just make an illusion that player is moving forward.

    There is an example template built-in in C2, you should check it out and investigate. That will give you a better picture.

  • Here it is fixed in the way you started: accounts.google.com/v3/signin/identifier

    But just FYI, it is not the best approach for a flappy bird. You should use platform behaviour for the bird instead of physics (physics are much more CPU consuming, so use it only when you really need physics behaviour). Also background should move infinitely and player should remain in one position (X position I mean). So you just make an illusion that player is moving forward.

    There is an example template built-in in C2, you should check it out and investigate. That will give you a better picture.

    Thanx Thanx BackendFreak, You saved me, The issue has been solved....and i will surely look into behaviors more deeply...

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