Valentino Virdis's Recent Forum Activity

  • I wrote this way (My Timer background) and it works only when I leave the app but when it does not resume within the timer .. and when it reaches 0 continues and goes below 0. How can I make it appear that is written in this way? 15: 00 instead of 900.00? And that when the timer gets zero it stops and can you connect the classic timer with the backgroun timer?

    --- Classic timer ---

    {System.every tick: set text to floor floor (Timer / 60% 60) & ":" & floor (Timer% 60)

    System.Timer> 0: System subbtract dt from Timer

    System.Timer <0: system set Timer to 0

    }

    --- My Timer background ---

    {System: on start layout: local storage: check item "mytimer exist;

    LocalStorage: on item "mytimer" exist: localStorage: get item "mytimer";

    LocalStorage: on item "mytimer" get: text: set text to (15 * 60) - ((Date.UnixTimestamp-LocalStorage.ItemValue) * 0.001);

    Button: on clicked: LocalStorage: Set item: Setitem "mytimer" to Date.UnixTimestamp;

    LocalStorage: On item "mytimer" set: text: Set text to "Timer set".

  • Hey but so you can do this thing ie create a countdown similar to clash of clans? But without using a server. I would like to do for example that I touch a button and I get a write with a countdown for example 15:00 minutes and if I close the application for 10:00 minutes and return it to me it appears that 5:00 minutes remain to complete this action I do not know If I explain it ..

  • Can you do such a thing to do the countdown?

    { system.every tick : set text to floor floor(Timer/60 %60) & ":" & floor(Timer%60)

    system.Timer > 0: system subbtract dt from Timer

    system.Timer < 0: system set Timer to 0

    }

    Can you do a similar thing? Even with the timeAwayL plugin or the date plugin? And also be able to give a precise time for example as I said before making a countdown from 15:00 minutes to 0. And when it reaches 0 the timer locks

  • But is it possible to make a countdown?

  • I used the timeAwayL plugin but can not find any help on how to use the plugin. However, if you know a guide on how to do this I would really be useful

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I had tried to use Rex's TimeAwayL plugin but I can not figure out how to stop time for example when it comes to 10:00 minutes it has to stop and then how to make the text so 00:00 instead of the default 0.000.

  • Someone could tell me how can you go get a timer in the background? Ie when the player switches off the game the time continues to flow. For example I touch a button in the game and it is written that to complete the upgrade it takes 15 minutes and if I leave the game the time continues.

  • Thanks for your help

  • I wrote the url. I did open URL in new windw URL: "http ....." in pc testing works while app on Phone no how ever?

  • Hello I can not link my app to facebook page. I tried to do URL with the link of my page but in the app does not open the facebook page somebody can explain me how to do it.

  • I did so and it works but when I go out and return from the game do not save maybe I did something wrong in the local storage?

    how can I send a screen here?

  • how do I add the variable "totalcoin" the value of the "coin" variable and save it with local storage. Because then I have to reset the coin variable.

Valentino Virdis's avatar

Valentino Virdis

Member since 1 Jul, 2016

None one is following Valentino Virdis yet!

Trophy Case

  • 8-Year Club
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

10/44
How to earn trophies