User Tag List

Results 1 to 6 of 6

Thread: I need help saving/loading objects

  1. #1
    No Products Registered

    Join Date
    Jul 2016
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    I need help saving/loading objects

    So I've been trying to make one of those drill digging games but on a bigger scale. I want to be able to include a skill tree and "inventory" which would be on a separate side from the main board. I have the issue of when you open your inventory or skill tree (Which swaps to the other frames) Then you close them (Which returns to the main board frame) All your digging progress is lost. I've tried saving and loading the frame but then I can't have the actual upgrade tree because it collides with the global numbers. I've been trying to use Ini but I can't get it to save the positions of every block.

  2. #2
    Clicker Fusion 2.5Fusion 2.5 Mac
    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)
    zip2kx's Avatar
    Join Date
    Jun 2015
    Posts
    845
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    I think you should look into using Arrays, it's better suited for saving more and complex stuff.
    Problem is also when you switch frames, fusion almost reboots, it wipes all info and starts creating again. You can either save every block and enemy position or do it in another way.

    What I would do in your situation is to not have the inventory or skill in other frames, i would have them on different layers that I hide and show. This way you dont even need to save the blocks, u can just pause every game event (which can be done simply by having every gameplay related thing in one group, then when users press I (or whatever key) for inventory, it disables that group and shows the inventory layer with your buttons or info).

    I usually do

    Layer 0 = background pics
    Layer 1 = gameworld
    Layer 2 = skill trees
    Layer 3 = HUD

    It sounds a bit complicated and it might take you a while to wrap your head around but it's not that hard as soon as you get the logic .

  3. #3
    No Products Registered

    Join Date
    Jul 2016
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually that's amazing. Before you commented I just said screw it I'm going to build everything on one frame, so what I'm doing is I made the map a bit bigger and pretty much put the inventory over there, but your method seems much easier xD. Thanks!

  4. #4
    No Products Registered

    Join Date
    Jul 2016
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So I'm doing this now but when I run the application the counters for the inventory don't pop up. They are showing when I'm making them. When I move them into the default view field and run the application they then show up and follow my screen.

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    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)
    Wodjanoi's Avatar
    Join Date
    Jun 2015
    Location
    Germany
    Posts
    665
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    You could remove the check mark "Follow the frame" and your counter objects should follow your screen again if you have them in the default view.


  6. #6
    Clicker Fusion 2.5Fusion 2.5 Mac
    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)
    zip2kx's Avatar
    Join Date
    Jun 2015
    Posts
    845
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by rotciv01 View Post
    So I'm doing this now but when I run the application the counters for the inventory don't pop up. They are showing when I'm making them. When I move them into the default view field and run the application they then show up and follow my screen.
    Like wodjanoi said
    Mark your objects then in properties remove "Follow the frame". When u do that the objects stay in the screen location (instead of the frame location) no matter what you do in the game world.

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. Replies: 5
    Last Post: 7th August 2015, 02:30 PM
  3. Saving/loading active objects?
    By necdel in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 11th December 2013, 06:13 PM
  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
  •