User Tag List

Results 1 to 9 of 9

Thread: How can I tell when a loop is completed?

  1. #1
    Clicker Multimedia Fusion 2 DeveloperInstall Creator Pro

    Join Date
    May 2010
    Posts
    536
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How can I tell when a loop is completed?

    Hey, folks!

    How would I write a conditional expression to determine whether a loop is still in progress? I tried writing a "compare two general values" statement, but once I specified the loop name, I couldn't figure out how to specify whether it was still active or not.

    Thank you!


    RGBreality

  2. #2
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: How can I tell when a loop is completed?

    No normal events will run while a fastloop is running. As soon as the loop finnishes the game and app will move on as usual. So if your game responds (updates the screen or whatever) then your loop isn't running at least

    Remember fastloops run quite fast so you might not even notice that they even started running.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I tell when a loop is completed?

    So basically, if you have the "Start loop" action in a list of actions, none of the actions after "Start loop" will take place until the loop has finished.

  4. #4
    No Products Registered

    Join Date
    Apr 2010
    Location
    Dr. Robotnik's Base
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I tell when a loop is completed?

    If you're still curious as to whether or not the loop is running though, you could make an object whose animation changes whenever the loop is active.

  5. #5
    Clicker Multimedia Fusion 2 DeveloperInstall Creator Pro

    Join Date
    May 2010
    Posts
    536
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I tell when a loop is completed?

    Hmmm... I see...

    So, how would I set up one loop immediately after another?


    RGBreality

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

    Re: How can I tell when a loop is completed?

    Start Loop1;
    Start Loop2;
    etc.
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  7. #7
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I tell when a loop is completed?

    Quote Originally Posted by Na
    If you're still curious as to whether or not the loop is running though, you could make an object whose animation changes whenever the loop is active.
    Won't work. The loop will finish in between the time one frame draws and the next.

  8. #8
    Clicker Multimedia Fusion 2 DeveloperInstall Creator Pro

    Join Date
    May 2010
    Posts
    536
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I tell when a loop is completed?

    So, I must be confused about something... Let me ask you this:

    1.) How do I define a loop?
    2.) How do I start it?


    Thank you!


    RGBreality

  9. #9
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: How can I tell when a loop is completed?

    If you do this:

    + Start of frame:
    -> Start loop [color:#006600]"a"[/color] for 3 times
    -> Start loop [color:#006600]"b"[/color] for 4 times

    + On loop [color:#006600]"a"[/color]
    -> Add line [color:#006600]"Hello there"[/color] to 'List box'

    + On loop [color:#006600]"b"[/color]
    -> Add line [color:#006600]"Golly!"[/color] to 'List box'

    and run that, you will immedeatly at the start of the frame see this in the list box:
    Code:
    Hello there
    Hello there
    Hello there
    Golly!
    Golly!
    Golly!
    Golly!

Similar Threads

  1. Replies: 7
    Last Post: 25th December 2012, 11:26 AM
  2. first game completed
    By willow in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 2nd January 2010, 08:39 PM
  3. Stock take - abandon, in process, completed?
    By joewski in forum Extension Developers Lobby
    Replies: 7
    Last Post: 8th December 2006, 07:00 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
  •