Device Clock and Countdown Question.

Thunder_ChildThunder_Child Member Posts: 2,343
edited November 2014 in Working with GS (Mac)

I see the clock in GS under Game...lets say a player presses the start button of a game for the first time on Nov 18th at 7:29:46PM...how could I create a timer that says you have 1 week to complete the game or "Game Over Man"...down to the second?

I mean even if they close the app for 4 days...not even running as a background app refreshing...that when they enter the game it shows date to finish and like below.

Time to Complete

3 Days, 14 Hours, 27 Mins, 09 Sec

Is this doable? Maybe a little hint on how to start?

Comments

  • pHghostpHghost London, UKMember Posts: 2,342

    @Thunder_Child said:
    Is this doable?

    Making the clock is definitely doable, though with this type of countdown, it is easy for the players to cheat by setting the clock back and giving themselves more time.

    Are you in a rush with this?

    I was thinking about making a video tutorial about it when you asked about the daily and hourly reward timer in Spin-O-Ween, but am going to a film festival in a day, so probably won't be able to get it done sooner than in about two weeks.

  • Thunder_ChildThunder_Child Member Posts: 2,343
    edited November 2014

    @pHghost‌ no Im in no rush. Brainstorming today and thought of it and how to implement it into a game Im tinkering around with. By the way Im talking about the device clock...I dont know how they could change the time on a device?

    Thanks for the reply I look forward to any tutorial you come uo with. :-)

  • BigDaveBigDave Member Posts: 2,239

    @pHghost
    would also love to see that video. And what other simple option (probably server) you have to compare past time.

  • LovejoyLovejoy Member Posts: 2,078

    @Thunder_Child said:
    pHghost‌ no Im in no rush. Brainstorming today and thought of it and how to implement it into a game Im tinkering around with. By the way Im talking about the device clock...I dont know how they could change the time on a device?

    Thanks for the reply I look forward to any tutorial you come uo with. :-)

    I think he might be referring to changing the phones date and time which will essentially trick the app into thinking time has past. Not sure about this, just throwing out a thought.

    Fortuna Infortuna Forti Una

  • pHghostpHghost London, UKMember Posts: 2,342

    @raycur09 said:
    I think he might be referring to changing the phones date and time which will essentially trick the app into thinking time has past.

    Exactly. Just turn off automatic date and time and manually set the date and time to anything you wish.

  • freneticzfreneticz SwedenMember, PRO Posts: 775

    @pHghost would be great with a video, i have Think of to make a game that works like this.....when you start play, a timer start and when you quit the timer quit and save and after some time something happen

  • Thunder_ChildThunder_Child Member Posts: 2,343

    Hmmm. Well sounds like theres a cheat capability. Maybe just make a timer so that a days worth of open app game time instead.

  • pHghostpHghost London, UKMember Posts: 2,342
    edited November 2014

    @Thunder_Child said:
    Hmmm. Well sounds like theres a cheat capability.

    There are ways you can limit that capability, which I will touch on in the video, but it will never be perfect, since you don't have control over their device clock.

    For example, in my slots game, it is possible to skip a day ahead and collect your daily reward for the next day. But if you do that, and then switch your clock back to the real time, you won't get the bonus again the next day. So in essence you can cheat to get your bonuses earlier, but not to get more of them.

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    edited November 2014

    To get around cheating I wonder if you could hook up to a sever clock and go based on that clock instead of the device clock. I haven't tinkered around with servers much, but that might be worth looking into since they cannot change the server time.

    EDIT: saw someone else mention this already. Sorry, I didn't read the thread before posting.

  • pHghostpHghost London, UKMember Posts: 2,342
    edited November 2014

    @Braydon_SFX said:
    To get around cheating I wonder if you could hook up to a sever clock

    Probably. For most situations it is overkill, though. And it will also break the game if you want people to be able to play it without internet access.

    In the end that will be an app-by-app decision, mostly. I won't be touching on any server-related issues, though the time-thread tracking system I use will work no matter where your date input is coming from, server or device.

  • pHghostpHghost London, UKMember Posts: 2,342

    OK, back from the festival, should be able to put some time into this over the next few days.

Sign In or Register to comment.