User Tag List

Results 1 to 10 of 10

Thread: Loading bars

  1. #1
    Clicker Multimedia Fusion 2
    Skeets's Avatar
    Join Date
    Apr 2007
    Location
    Utah, USA
    Posts
    360
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Loading bars

    Ok, as you see in the below thread, I am having difficulties with 800+ objects, but I think it would be ok if I had a loading bar, right now the program goes "not responding" for a few seconds and then it comes up, but I'd rather it have a loading bar. I know there is a load bar object, but I don't know how to make it work for this

  2. #2
    Clicker Fusion 2.5 Developer

    Join Date
    Jun 2006
    Location
    Hampshire, UK
    Posts
    963
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Loading bars

    You can't make a loading bar.

    BUT

    Create an object saying "Loading" and create it before the loop runs, then destroy it after the loop has run! But it isn't work it at all with only 800 objects, i think all users will understand without explaining it.

    Also, don't create two topics for the same problem in the future, it pushes other threads off the page.

  3. #3
    No Products Registered

    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    1,141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Loading bars

    You can use the Progress Bar Object to create a loading bar. It supports display updating even if the application is frozen due to running a loop or similar.

  4. #4
    Clicker Multimedia Fusion 2
    Skeets's Avatar
    Join Date
    Apr 2007
    Location
    Utah, USA
    Posts
    360
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Loading bars

    how exatly do I do this? You said that it works if your application is frozen, but what if the whole window goes white? it does load eventually...

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    Game_Master's Avatar
    Join Date
    Jul 2007
    Location
    England
    Posts
    1,705
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Loading bars

    Use the extension called DialogueBox. It is only available in MMF2 Dev. However, I have seen an object used on a game in TGF2 that can make a progress bar in a pop-up window. Ask Jakeownsfilms, he made the game that I saw it in.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Tuna's Avatar
    Join Date
    Feb 2008
    Location
    Central Texas
    Posts
    1,853
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Loading bars

    is there a way to allow the processor to be free'd up during a loop as is done with DoEvents in VB? If this could be built into loops, that would be great.

  7. #7
    Clicker Multimedia Fusion 2
    Skeets's Avatar
    Join Date
    Apr 2007
    Location
    Utah, USA
    Posts
    360
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Loading bars

    sorry, I don't know what doevents are or what VB is...

  8. #8
    No Products Registered

    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    1,141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Loading bars

    It works fine for me with Progress Bar... Never had any problems with the window going white, but I never made any massive, 30 second+ load functions either...

  9. #9
    No Products Registered

    Join Date
    Aug 2006
    Posts
    984
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Loading bars

    Quote Originally Posted by Tuna
    is there a way to allow the processor to be free'd up during a loop as is done with DoEvents in VB? If this could be built into loops, that would be great.
    Sphax made an object that lets you run, for example, "chunks" of 50 loops a certain amount of times... which would be very useful for custom bars

    so if you needed to run 200 loops, you could run 4 sets of 50 loops, then after each set runs, it gives MMF a chance to update the screen

  10. #10
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Tuna's Avatar
    Join Date
    Feb 2008
    Location
    Central Texas
    Posts
    1,853
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Loading bars

    Quote Originally Posted by xyzzy
    Quote Originally Posted by Tuna
    is there a way to allow the processor to be free'd up during a loop as is done with DoEvents in VB? If this could be built into loops, that would be great.
    Sphax made an object that lets you run, for example, "chunks" of 50 loops a certain amount of times... which would be very useful for custom bars

    so if you needed to run 200 loops, you could run 4 sets of 50 loops, then after each set runs, it gives MMF a chance to update the screen
    Sounds like that would solve the problem and would be about the same as the DoEvents function.

    Skeets: "DoEvents" is a Visual Basic (VB) function that is used to tell your program to give the Operating System "permission" to Do other pending processor events. Effectively preventing a busy loop from fooling Windows into thinking the thread or program was not responding.


Similar Threads

  1. Black bars?
    By GeioRay in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 10th April 2013, 02:34 PM
  2. help with life bars!
    By imamariobro in forum The Games Factory 2 - Technical Support
    Replies: 4
    Last Post: 8th January 2008, 06:54 PM
  3. health bars
    By Typhoon in forum The Games Factory 2 - Technical Support
    Replies: 6
    Last Post: 8th December 2007, 09:03 PM
  4. Counters with Horizontal Bars bug?
    By Renatos in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 5th September 2006, 04:01 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
  •