User Tag List

Results 1 to 2 of 2

Thread: Can a Sub-Application transfer its state to another Sub-Application in another frame?

  1. #1
    Clicker Fusion 2.5 (Steam)

    Join Date
    Nov 2019
    Posts
    29
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Can a Sub-Application transfer its state to another Sub-Application in another frame?

    Hi, I've run into a technical issue with save states using the sub-application.

    I have two frames, each with a sub-application object in them, both sub-app objects are set to run the same frame and are set to include Global Values.

    In the game, the player will be viewing one frame, whilst the first sub-app runs a different frame in the application, and eventually the player will be taken to view another frame that has its own sub-app.

    However, when this change occurs, the sub-app in the final frame is at its default state, whereas I want it to have the state of the sub-app that came before.

    The sub-app object is running a frame where the enemy AI is executed. My game has a lot of complicated stuff, so I've segmented different areas into different frames, hoping I could keep the enemy AI frame running uninterrupted in the background regardless of what frame is being shown.


    Subappsit.jpg


    I'm basically wondering if two sub-application objects both set to run a particular frame, whilst also being placed inside two different frames, can transfer the current state of the particular frame they are running to each other?

    Or if I can make one sub-application object run in the background uninterrupted for the whole application while the frame the player views changes?

    I haven't had to deal with save states before, so please forgive me if there's a common, obvious solution.

    I am open to any method of running this AI frame in the background uninterrupted by frame changes. I've thought about using Global Values and Counters to store the positions and states of the AI frame, but it's a very complicated frame, and I don't want to have to store each and every possible state manually if I don't have to.

  2. #2
    Clicker Fusion 2.5Android Export ModuleHTML5 Export ModuleiOS Export Module
    hamdi369's Avatar
    Join Date
    Feb 2015
    Location
    Strasbourg France
    Posts
    130
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    However, when this change occurs, the sub-app in the final frame is at its default state, whereas I want it to have the state of the sub-app that came before.
    hello sorry for my bad english, I am french...
    It's not easy to reply you because I don't know enough about your project, but what I understand you have 2 subapps pointing the same frame, and you want one communicate the other that it has a event to do ('the state change')..

    in this case I think better is to not share global values/string with the parent to discriminate the 2 subapps.

    I create a little mfa (see attachement) with 2 supabb that pointing the same frame and communicate together in 3 manners:


    1. through global values
    2. through windows registry
    3. with share value object


    note that could be other manner, there are a lot of way to do it

    Or if I can make one sub-application object run in the background uninterrupted for the whole application while the frame the player views changes?
    Yes! of course! clearly!
    in this case you have on root (main/first frame) 2 subapps, 1 "background" that do what it has to do (that could be invisible by user), and another "what user view" with change ect...
    In fact more you have subapp correctly implemented, and more powerfull will be your application
    the application of my project is full of subapps, in main there are 5 subapps visible that working ininterrupted and could be called by the user (it could see just 2), there are visible and invisibles subapps... subapps of subapps... subapp of subapps of subapps too...

    more you have subapp more complex and complete will be your app

    ypu have to correct "brainstorm" the "three" of hierarchy" of you subapps and your app will be good and powerfull.
    I advise you to create "dumb application" with just subapp and frames corresponding of your project , to see/test before creating directly the real.

    good luck
    Attached files Attached files

Similar Threads

  1. Replies: 16
    Last Post: 22nd February 2018, 07:48 PM
  2. Replies: 0
    Last Post: 14th October 2016, 02:51 PM
  3. Bottom of frame cut off when I click Run Frame/Application
    By soarerv8 in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 23rd January 2013, 03:11 AM
  4. Replies: 1
    Last Post: 17th January 2013, 03:29 AM
  5. Sub-Application transfer of keystrokes
    By wizkidweb in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 4th August 2009, 09:07 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
  •