User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13

Thread: Idle system when off computer

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,156
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Idle system when off computer

    I have done game in the same vein as Clicker Heroes, it is an idle game, but I have not figured out how to make the game idle when offline like Clicker Heroes does. That is if you shut down the computer and come back a day later you will have earned coins in the game while gone. I assume this is done by comparing the time when you leave with some online clock or something?
    Could it be done with Fusion? Anyone know how?

    Also I need to do this on mobile. But I have noticed that every idle game I have tried on mobile with an earning system when you are not playing are actually dependent on the clock on the device. Anyone know how to do that? Or is it possible to also compare to an online clock on mobile? The problem when comparing it to the device clock is that it is very easy to cheat by just adjust the clock forward in time..

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Apr 2007
    Location
    Australia
    Posts
    1,151
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Save a server timestamp to a local array. Then compare it with the same server timestamp when they load the app again by subtracting the old timestamp from the new timestamp (will give you seconds passed since the app was last opened.)

    The PHP script is really simple as well

    Code:
    <?php
    
    echo time();
    
    ?>
    Save that as a .php file and upload to a server with PHP enabled. Then use the GET object to grab the values each time you need them. If the user isn't online you won't be able to use this method obviously...

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,156
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Is there an example on how to do this?
    I have used PHP once before with highscore, but I don't remember how to do it :/

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,117
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    You should also know that using a server timestamp check will require the player to use either their network data or have access to wifi... which means if the player has no data/wifi the check won't work.. so you need a backup plan.

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,156
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    DaveC - On Flash that is not such a problem though since you actually need to be connected to play flash games?

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,117
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    that's correct, not a problem for flash, it could just cause issues for some phone users (also people who have an ipad with no sim card)

  7. #7
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,156
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Yes that is true, maybe that is why they use the internal clock on mobile from what I have seen so far. How do you compare to that?

  8. #8
    Forum Moderator

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleMac Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Perry's Avatar
    Join Date
    Dec 2013
    Location
    Watertown, WI
    Posts
    4,355
    Mentioned
    53 Post(s)
    Tagged
    0 Thread(s)
    When the game starts the 1st time.. (Date and Time) Save the values from the phone.
    Then use that for your program.
    If people are messing with the time and date, you can give them a warning (Like going back an hour or changing the date in order to get something)
    If you think people are going forward in time. Just save the value, and compare it with past times. (not sure how I did it, since I didn't do that in Fusion at that time)

  9. #9
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,156
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    But how do I save the values from the phone of the time and date? I have looked at the iOS object but I can't find any such actions.. :/

  10. #10
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Apr 2007
    Location
    Australia
    Posts
    1,151
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There is a Timestamp object for iOS, search the forum.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Idle animation for platformer character?
    By Pablocp in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 28th January 2015, 06:25 PM
  2. Beta 17: Idle timer tick box and fire 2
    By AndyH in forum iOS Export Module Version 2.0
    Replies: 8
    Last Post: 19th March 2011, 05:26 PM
  3. Idle anim setup question
    By mobichan in forum Multimedia Fusion 2 - Technical Support
    Replies: 13
    Last Post: 1st May 2008, 02:44 AM
  4. Username box character allowance and Idle timer
    By Plooscva in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 19th February 2007, 01:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •