User Tag List

Results 1 to 6 of 6

Thread: INI help

  1. #1
    No Products Registered

    Join Date
    Oct 2011
    Posts
    172
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    INI help

    So I've read over the INI tutorial pdf file from this website and I think i get the hang of it some what. What I am attempting to do is this, once i defeat all the enemies on stage 1 and reach the end of the stage, i want the health,lives and score to be saved and have it load on the next stage. I know it might sound simple but I really do not know where to even start. Ive been told the INI is what i need to do this. Any help is appreciated.

  2. #2
    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)
    I created a simple example that shows how you'd go about doing this. Just customize it to what you are doing and it should work. I'm not sure what exactly you are doing but score and lives should stay the same over frames. And if you set the health counter to global it should carry over too. But I made the example to show you how your method would work. Where you press space bar to save and go to next frame you'd replace with last enemy destroyed or enemies = 0.

    Lol typo in the comment in the frame, it adds 10 to score, not 1 :P
    Attached files Attached files

  3. #3
    No Products Registered

    Join Date
    Oct 2011
    Posts
    172
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks a lot man! This is exactly what i was looking for. For example, lets say the game saves automatically after you finish stage 1 then it takes you to stage 2. But you dont want to continue the game now so you press quit and then later on in the menu you press continue to start stage 2. Can I use your method for that?

  4. #4
    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)
    Oh I see what you mean. Yeah you could do that with this method. Just have it save the ini on each frame or level. If you want to have it save your level you are on, add another item to the ini, like Current Level or something. You could use a global value to track that. Just have it save those values when you choose to quit the game. Then when you load the game you can have it jump to the frame number equal to the global value after you loaded all the values from the ini. For the global just have something like Start of Frame on first level, set global A to 1. Second level set it to 2, etc and save it with the other values.

    You don't actually need to load all the values in each frame every time, just save them before you go to the next level. Then at the beginning of your game if you click on continue or whatever you have, then set the lives, score, health, and level number to the values from the ini.

  5. #5
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Paul_Boland's Avatar
    Join Date
    Jun 2006
    Location
    Waterford, Ireland.
    Posts
    2,739
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you want to drop me an email to pkb@iol.ie I'll send you a tutorial which is written in leeman's terms.
    KnightTrek Productions
    http://www.knighttrek.com

  6. #6
    Clicker Multimedia Fusion 2 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleUnicode Add-on
    iamjot's Avatar
    Join Date
    Nov 2008
    Location
    Austria
    Posts
    728
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes the sums it up. thx for the file!

Posting Permissions

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