PC Freezes

0 favourites
  • 7 posts
From the Asset Store
A space themed game with high quality 2D graphics and addictive music that provide hours of fun
  • So I'm testing out my game, it's no where near a complicated or sophisticated game, but every time I leave it running for a little bit it slows my pc until it starts freezing. It seems to only happen when I'm trying to stop the game after the timer goes out, all the objects except the backgrounds get destroyed and text comes up saying time's up!

    It only happens when I add the condition for when timer = 0 then it destroys all the objects individually then spawns the Time's up! text in the center of the screen.

    But if i take the condition away the game is fine if I leave it running, but adding that and process in the task manager goes up to like 1,000,000K in the memory, so does anyone know what is causing this issue?

  • when timer = 0 ..................................................then spawns the Time's up!

    Trigger once while true

  • I'm not quite understanding your post, not sure if you're trying to answer the question? When the timer = 0 the Time's up text does spawn, everything works as intended, it's just that it starts making my pc freeze for no apparent reason.

  • are you using condition " Trigger once while true"

    when your spawn text?

    https://www.scirra.com/tutorials/292/gu ... t-features

  • I think korbaach is implying that the reason your pc is slowing down is it is creating something constantly - a cascade - and the trigger once will stop that. You can see if this is the case using the debugger.

    Alternatively, post either your .capx or screenshots of your events. That way, you'll get direct help rather than just guesswork.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ok, so you saying that made me realize my mistake, I was using the compare variable, the variable being "timer". I thought that it would only go through the condition once, but it was continuously spawning them over each other adding more and more until it started to freeze up the computer because "timer"=0.

    So I've added the trigger once while true after that and it seems to be working now.


  • Thanks for the help zenox98

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