User Tag List

Results 1 to 5 of 5

Thread: Saving a Frame

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

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

    Saving a Frame

    Hi there,

    I dare say this has been posted elsewhere, but I have searched here and on you tube and haven't found what I am looking for so I wonder if anyone could help me:

    I create 2 frames
    I create 3 active objects in Frame 1 (obj_1, obj_2 & obj_3)

    In frame 1:
    I set it so that whenever I press <spacebar> obj_1 creates an obj_2 at it's location.
    I set it so that whenever obj_1 touches obj_3 we jump to frame 2.

    In Frame 2:
    I set it so that wenever obj_1 touches obj_3 we jump back to frame 1

    How do I then make MMF2 (developler should it matter) remember all the positions of the obj_2s that we spawned whilst in Frame 1 the first time.

    NB I don't want the user to have to actively save / load before going to frame 2.

    If you can help I'd be very very grateful.

    Thanks.

    Chris C (still fairly new to MMF2)

  2. #2
    Forum Moderator

    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,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Hi Chris_C and welcome to the forums. There are several methods, but try using Global Values for obj_2 X,Y positions. These values will carry over through the frames.

    There is also the Save Frame Extension.

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

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Oct 2011
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Marv, I've been reading the forums for a while, but haven't posted before!

    The problem with Global Values is that I can undertand how to make it remember Obj_2 but not if there is more than one of Obj_2 (because I can create more than one with the spacebar) and the save objects that I have been using all save to a file that requires active saving and loading, which I am trying to avoid!

    Does that makes sense?

    (a more complex example of what I am trying to do would be:

    Frame 1 is a house, in which I can put multiple 'tables' (all obj_2), I leave my house to go and 'kill zombies', when I come back to my house I would like the 'tables' to be in the right place (where I left them!), but I am having trouble making that work... Sorry!

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Oct 2011
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    (I am now heading to your MMF2 examples to get more inspiration though!)

  5. #5
    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)
    Do you always only have those 3 objects? Sounds like you could just use the ini object (or an array) and store the coords. The user wouldn't have to save manually, you can do all the saving and loading in your events. I'd probably just use an array. You don't even have to save a file using that. Just make it global and just set the position for the x and y coords to what you have in the array. Although if you're new that might be a bit complicated.

Similar Threads

  1. Saving last frame position?
    By Bernardo3D in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 24th September 2009, 03:34 PM
  2. saving a frame exactly
    By sollthar in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 4th October 2008, 11:50 PM
  3. Saving Frame
    By Kimera in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 22nd August 2008, 10:51 PM
  4. Multi-Frame Saving
    By Gameguy94 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 22nd March 2008, 10:10 PM
  5. Saving Frame Position does not save the angle
    By dustingunn in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 2nd August 2007, 08:46 AM

Posting Permissions

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