User Tag List

Results 1 to 10 of 10

Thread: how to make subapp start from beginning when it becomes visible

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

    Join Date
    Jan 2010
    Posts
    545
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    how to make subapp start from beginning when it becomes visible

    Hi,
    I have a game that utilizes subapps to display information. I want the subapp to start from the beginning each time it is made visible. It should display paragraphs from strings and animations in a particular order etc. For some reason, it is starting at a later part of the subapp. I've tried using "start of frame" and telling it where to start but this is not working. Also, I've tried using a global value to reset the subapp from the main frame but this isn't working either. Any ideas? Thanks,
    Brett

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Instead of making it visible/invisible, try destroying and creating it each time you need it.
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


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

    Join Date
    Jan 2010
    Posts
    545
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hi Stephen,
    If I destroy and re-create will I still be able to jump to different frames in the subapp from the main frame?

  4. #4
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Yes.
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jan 2010
    Posts
    545
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I tried this method and it conflicted with some of my other programming. Is there another way (other than create and destroy) to make an individual frame of the subapp automatically start at the beginning? The same subapp has multiple frames. Thanks,
    Brett

  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)
    Why not use the Restart frame or Restart application action of the sub-application object?

  7. #7
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    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)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    1,964
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)
    The way I use subapps is close them from the frame inside the subapp (using End Application) and use "On sub-application end" -> destroy sub-app object, create sub-app object.

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jan 2010
    Posts
    545
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Francois View Post
    Why not use the Restart frame or Restart application action of the sub-application object?
    Hi Francois,
    I tried this, but for some reason it causes the subapp to always go back to the same frame. So, if it restarts the current frame, I'll only be able to see frame one of the subapp, even though the main application says to jump to a different frame. The program works when being tested in MMF2. I only experience the problem in the Flash build. Do you have any idea why this might be? Thanks,
    Brett

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jan 2010
    Posts
    545
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thanks Sortacore,
    Your method worked perfectly. I appreciate it. Have a good day,
    Brett

  10. #10
    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)
    I must be re-initialising to the frame number entered in the properties. I have to check.

Similar Threads

  1. How to make a object's motion stop at the start of
    By Lillmissthang in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 21st February 2010, 09:27 PM
  2. make layer visible/invisible?
    By Iwantmyrpg in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 20th September 2009, 11:39 PM
  3. Hidden at Start... how to make visible at runtime?
    By aidmm in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 6th December 2006, 06:20 AM
  4. How to make visible counter?
    By The Thinker in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 21st November 2006, 05:15 AM
  5. Show layer clearing "Visible at start" attribute?
    By Strawin in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 12th August 2006, 04:02 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
  •