Game slows down over time

0 favourites
  • 5 posts
From the Asset Store
Time rewind like in "Braid". Choose objects that will be affected by time rewind
  • Would be very grateful for any help on why my 'test game' slows down over time. The simple game just uses a spacebar to shoot buttets! If the game is left on the screen without any interaction after about 5 minutes the objects have really slowed down and the bullets crawl up the screen.

    Not sure what the problem is... coding, bad graphics, my computer...It seems to have similar effect played locally or from the internet.

    I am using release 65.

    Construct file is at: specialbites.com/Test/testspeed.capx

    Game is at: specialbites.com/Test/index.html

    Many thanks in advance

  • its always handy to have a text object show the total objects, = set text to system totalobjects, now when you shoot the objects the objectcounts is raising fast...

    i think the problem is that you use the spawn explosion, use the system create explosion and dont forget to destroy the explosion when alpha=0 or end of animation.

    also the ticks, you have a variable that when = 1,2,3 create objects,

    you should put a system trigger once condition with it otherwise it will continue to create objects when = to that number

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you add a new txt object and populate it with:

    "FPS: " & fps & " TickCount: " & tick.Count & " DashCount: " & dash.Count

    This just shows how many 'Ticks' and 'Dashes' are created when your events ask for it.

    You'll see the problem instantly. When you press space, it's creating a bucket load!!!

    Quick fix is to use Trigger Once as another condition on Event 8 and onwards.

    Better fix is to redo that whole section for displaying ticks and dashes.

  • Thanks for the replies. Novice at work here! I now understand the problems. Novice will now work on solution. Thanks very much for you help.

  • Not a problem. Trying out things is the best way to learn, and using debug messages can be a life-saver (or brain saver) :)

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