User Tag List

Results 1 to 7 of 7

Thread: Inventory in Sub Application

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS 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)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Inventory in Sub Application

    Hi
    I am trying to create a simple Inventory System. I will explain how i am trying to do this:

    ...
    Application has 2 Farmes, 1 Game Frame and 1 Inventory Frame.

    In both Frames i have the same Array Object ( wich is the actuall Inventory ). The Array Object has 'Global to this Application' checked.

    The Game Frame has a 'Sub Application' displaying the Inventory Frame.

    ...
    First issue:
    I am trying to Show/ Hide the Inventory by using keyboard buttons.
    How do i 'Hide' the Inventory ( sub application )?
    I am able to 'Show' the Sub Application, but then the Game Frame pauses and it seems impossible for the Game Frame to run any code wich will 'Hide' the Sub Application.

    Secound Issue:
    I am under the impression that since my Array Object is global and exists in both my Frames, any change to either of them will also change the other.
    Is this true, even inside a sub application?

  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)
    1. Look at my sample on my website. It shows how to open and hide the Sub-application.

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

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS 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)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Marv
    But in your example ( subappexample ), everytime you exit the Subapp ( by pressing space ) you create an additional Sub Application. Wich means if you close the Sub Application 20 times, there will be 20 Sub Applications in the Frame at the same time.

    So if i 'end the Application' from the 'Sub Application Frame', i close the Sub Application.
    If i count the number of Sub Applications in the Main Frame, it seems to still be present ( its not destroyed ) after i close it.
    Then why doesnt it work to 'Show' the Sub Application again after this?
    Do i really need to create a new Sub Application everythime i want to 'Show' it?

  4. #4
    Clicker Fusion 2.5 DeveloperiOS Export Module
    ChrisBurrows's Avatar
    Join Date
    May 2011
    Location
    Tasmania, Australia
    Posts
    622
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    No it is not necessary and will lead to problems.

    This is how you do it.
    Attached files Attached files

  5. #5
    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)
    Thanks king_cool for pointing that out. It just needs to be destroyed each time it's closed. I will correct that and good going

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

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Have you looked at the inventory object I made? You can find a link to it in the Multimedai Fusion Owners lounge...

  7. #7
    Clicker Fusion 2.5 DeveloperiOS Export Module
    ChrisBurrows's Avatar
    Join Date
    May 2011
    Location
    Tasmania, Australia
    Posts
    622
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    You can destroy and create it each time, or you can show and hide it each time. They have different effects.

    If you use the destroy and create method, then all object values, positions, counters, etc on that frame will be reset when you close the subapp. If you use the show and hide method, everything will be as you left it when you "show" the subapp. You are also able to run code from the source frame in the background. I made an example to demonstrate.

    It really depends what effect you are after.
    Attached files Attached files

Similar Threads

  1. Inventory
    By JimmyTHicks in forum The Games Factory 2 - Technical Support
    Replies: 3
    Last Post: 6th March 2013, 01:27 AM
  2. inventory.
    By Sevennemesis in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 7th November 2012, 02:55 PM
  3. inventory help
    By Oreo in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 24th January 2009, 04:29 PM
  4. RPG Inventory
    By Joni in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 5th January 2007, 03:59 PM
  5. Inventory?
    By Ravenius in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 14th October 2006, 07:13 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
  •