Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
Run the timer when the game is closed..

behroz-khan
Registered User
Quote
2018-08-27 18:09:26

I want to create an upgrade system. So when we click the update button a timer will start ticking. So the problem here is that when we close or change the scene the timer will stop and the upgrade will not take place...
Can it be done without scripting??? If no please give me the script.

Any help will be appreciated


behroz-khan
Registered User
Quote
2018-08-28 15:35:38

No answer...


just_in_case
Moderator
Quote
2018-08-28 18:18:12

Use save and load variable action... When changing scene... This may not work after closing the game completely...

Before changing the scene save your time as variable and after loading the another scene simply... Load the tine variable and use it to start ticking again...


behroz-khan
Registered User
Quote
2018-08-29 22:10:04

That wouldn't be ideal because when the game is closed, no timer running.


just_in_case
Moderator
Quote
2018-08-30 09:09:08

if you are using the real world clock then only it can be possible but if you want to use your own timer then sorry it is not possible to do this with current version of coppercube.


behroz-khan
Registered User
Quote
2018-08-30 11:25:23

Oh! Thanks for the answer.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Int?rnational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact