User Tag List

Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 21

Thread: Time since exe launched

  1. #11
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What if you use the array object? It has a save action. I created an autosave with it in one of my games. You would just have to create a condition which would cause the saving to occur. So, right before game closes, it saves the current timer value. Then you load from the array the next time the game is started and set the timer to the loaded value.

  2. #12
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,852
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Cimics,.I will give that a shot.

  3. #13
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    1,964
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)
    An array object is unsuitable for a non-tabular data, e.g., if you wouldn't put it in a grid, you shouldn't use an array.
    INI is better for this purpose, as it is various settings, rather than sets of one type of data, which the Array object is good for.

    +On Start of Frame
    -INI: Set current file Apppath$+"Data.ini"
    -Timer: Set timer to ItemValue("INI", "Timer")

    +On save event
    -INI: Set value "Timer" to ItemValue("INI", "Timer")+timer

  4. #14
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,852
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Thanks SortaCore,.i'll give that a try.

  5. #15
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Also, if you want to prevent someone from editing that file, you can use ini++ or an array object with built in encryption. Though for maximum compatibility the default ini object would be safer (if you care about exporters). Don't know if ini++ or something similar has been ported to Flash/iOS/etc

  6. #16
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,852
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    The problem I'm having with all of this, is that the game has multiple levels (20) and I just don't understand how to set this up for each level. To be totally honest I don't understand it at all. I tried using Sortacores example and nothing happened? Do I need to use a counter also in the example above or a few counters to record hours, minutes, secs? I'm really clueless.

    Here is an example one of the members did for selecting levels that I used in my game and it works perfect and I understood it. This is how my game is setup using that example,.but would like to add in a total "timeplayed" feature to the game in , hours, minutes, seconds,.or just minutes and seconds if it would make things easier. Even if a player is on say level 10,.I want the total time to be seen throughout the game and when the player exits and comes back later to play the game again, I would like it to keep adding the time to the current time played and so on.

    Also,.since I'm using an INI now,.can I just use the same one or does another need to be added to do the time saving feature?

    http://www.mediafire.com/?0482usrzg5xr3bc

  7. #17
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Here, check this example:
    Attached files Attached files
    Working as fast as I can on Fusion 3

  8. #18
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,852
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    LB,.very nice indeed. Thank you for taking the time to do this. It works just like I was thinking. Now I understand how it's done. I have one question,.where would the INI be stored. I can't seem to find it?
    Thanks to all of you who posted in this thread. You're all a big help!

  9. #19
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    1,964
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)
    Apppath$ is the macro for the Application's Path. That'll get what folder the program is running in.
    e.g. if your program is C:\Program Files\MyGame\Fun.exe, Apppath$ will be C:\Program Files\MyGame\.

  10. #20
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    By default it would be stored in the AppData folder. It's a hidden folder in your windows user folder so you can't see it unless you enable that in folder options. Obviously you can change the file path to be saved if you don't want it in there.

Page 2 of 3 FirstFirst 1 2 3 LastLast

Similar Threads

  1. App restarts when launched second time, and stops registering input
    By Xeeko in forum Android Export Module Version 2.0
    Replies: 20
    Last Post: 18th November 2013, 12:33 PM
  2. [Bug - Beta 19] - Application not launched for the second time
    By Nico in forum Android Export Module Version 2.0
    Replies: 7
    Last Post: 30th September 2013, 07:52 PM
  3. Can't stop a launched object.
    By LemonyLime in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 11th October 2012, 04:59 PM
  4. how to control a launched object
    By wizlore in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 23rd September 2012, 06:55 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
  •