User Tag List

Results 1 to 6 of 6

Thread: Help with saving and loading objects position to Ini

  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)

    Question Help with saving and loading objects position to Ini

    I am trying to do a game where you can build things and their positions are saved to an ini and when you start the game over you can load the game and the what you have built is loaded back. This works well, but I can't get it to work when destroying stuff. Do anyone know how to do this? So you can build say 3 things, then destroy 2 of them and have them be "destroyed" in the ini so the next time you load they are not there anymore. I got it halfway in my real project, but there was something strange where you sometimes destory something and then when you load things swap places. I have uploaded a simple example of what I am trying to do but in this example the destory event does not even work for saving it. Maybe someone can take a look and see what can be done and how to fix this? I think the way I do this could be done much more efficient also? :S I feel like I am doing something fundamentally wrong in approaching this whole problem..
    Attached files Attached files

  2. #2
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,729
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Under MISC on my website, there is Hex Map Editor 3.1. Take a look and if it helps I can upload the mfa.


    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  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)
    Thanks Nivram, not sure how the example works though? I just get a white box and a "search" bar.

  4. #4
    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)
    Sparckman's Avatar
    Join Date
    Feb 2011
    Location
    Planet of the Kangaroos
    Posts
    1,423
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    I have been wanting to do an example like that, i keep forgetting I'll put it on list on tuts to do.

  5. #5
    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)
    You should really be using an array for this sort of thing. Ini's are usually used just to store settings variables.

  6. #6
    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)
    Sparckman's Avatar
    Join Date
    Feb 2011
    Location
    Planet of the Kangaroos
    Posts
    1,423
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    yapppp, array probly would be easier to manage the data, it can totally be done with ini too but using the array object would make your life easier for handling a lot objects.

Similar Threads

  1. Saving and loading multiple objects on standard "Ini Object"?
    By EdibleWare in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 20th April 2016, 08:52 AM
  2. Saving/loading active objects?
    By necdel in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 11th December 2013, 06:13 PM
  3. Destroying objects in unison with saving frame position
    By fawfulfan in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 5th November 2011, 10:49 AM
  4. saving/loading objects and fixed values
    By uprize in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 29th September 2009, 06:43 AM
  5. Saving/Loading from file my Actives Objects?
    By DJ_Wild in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 27th August 2007, 07: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
  •