User Tag List

Results 1 to 6 of 6

Thread: Subapp and global objects

  1. #1
    RayMarble
    Guest

    Subapp and global objects

    In my app the subapp just ignores the globality of global objects: the global objects behave as if I pressed F7 to run the subapp from another TGF window (global values etc work normally though, since the subapp has all the "share"s checked). Am I doing something wrong or is this normal?

    If this is how it's meant to be what's the most practical way of forwarding the state of the global objects: saving them all to disk and loading them from subapp?

  2. #2
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,022
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)

    Re: Subapp and global objects

    Yes it's normal, only global values, global strings, scores and lives are shared between a sub-application and its parent application. Objects are not shared.

    saving them all to disk and loading them from subapp?
    Or maybe use global values?

  3. #3
    RayMarble
    Guest

    Re: Subapp and global objects

    Hm, the subapp was meant as an inventroy (which is in turn stored in an array), so I'll have to investigate what happens to arrays etc. As for the rest, I'll use global values - thanks :-)

  4. #4
    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)

    Re: Subapp and global objects

    The AssArray can also share values with sub-applications, if it is global, and the array is placed in the parent frame and the frame with the sub-application.

    Edit: oops...not sure TGF can use AssArray. Sorry.
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  5. #5
    RayMarble
    Guest

    Re: Subapp and global objects

    No, can't. Also I'm trying to make the whole game just with the default stuff that comes with TGF, let's see if I can do it :-)

  6. #6
    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)

    Re: Subapp and global objects

    Ok, best of luck on your project.
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

Similar Threads

  1. Help with Global Objects
    By YeOldeLuke in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 27th May 2013, 08:18 PM
  2. Sometimes Global Objects
    By Krim in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 16th February 2012, 09:46 AM
  3. Global objects in global events
    By Boba Fonts in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 8th October 2010, 12:12 PM
  4. State of global counter not updated in subapp
    By RayMarble in forum The Games Factory 2 - Technical Support
    Replies: 5
    Last Post: 22nd March 2010, 02:33 PM
  5. Subapp and global counters?
    By Horn in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 27th March 2007, 08:09 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
  •