Idle game issue.

0 favourites
  • 10 posts
From the Asset Store
Easily generate many levels from a set of pre-built scenes (Construct 3 template)
  • I want to use the wallclock time everytime i want to change a tab in the browser.

    im making this to once the player switches to the game tab, the amount of currency he could earn while idle will be directly proportional to the amunt of time he was afk.

    ¿how do i do that?

    ¿is there any event that can make that happend?

    (i apologise for my english)

  • Every 1.0 seconds

    • - Add to "currency": 1

    Make sure you set "Pause on unfocus" to 'no' in the Configuration Settings subsection of the Project Properties.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • gumshoe2029 you do realize that "Pause on unfocus" is an option that works only on preview and not on export, right?

  • shinkan gumshoe2029

    i want to solve this problem:

    but it just simply doesnt work.

    every time i change tabs the game still freezes the gold.

    And if i remove the Every 1 Second from the event, it will literally raise 60 times per second

  • Up-

    Please help me someone.

  • Grim there's plenty of posts on the forum about that. All you need to do is to use search.

    And not to be rude or anything, but maybe you should read some tutorials or make something simpler first. Looking at your events it's quite obvious that you have no idea what are you doing.

  • Events are completely suspended when the game is in the background. You probably want to use the Browser object's 'On suspended' and 'On resumed' triggers. If you save the wallclocktime in both, you can figure out how long the game was in the background for, and compensate accordingly.

  • Grim there's plenty of posts on the forum about that. All you need to do is to use search.

    And not to be rude or anything, but maybe you should read some tutorials or make something simpler first. Looking at your events it's quite obvious that you have no idea what are you doing.

    You would be surprised of what i'm actually archieving...

    Thanks ASHLEY.

  • There is a difference between knowing what and how to do something and achieving something. But like I said, I didn't want to be rude and have no intention in that.

    I would be surprised if you had troubles with achieving something, because It's rather difficult to not achieved anything with C2 events

    Unfortunately what i wrote in previous post stands correct. And again, I'm not being rude or anything. You should take few steps back and read and especially learn how to use events properly. When you understand that you will notice right away how nice and smooth you can use events into your advantage.

  • gumshoe2029 you do realize that "Pause on unfocus" is an option that works only on preview and not on export, right?

    We use it on our exported game atm. It seems to work?

    But then we don't care how long the user is not focused on our client. We just want everything to keep ticking off.

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