User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13

Thread: Inline Repeat Extension - any need?

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Sep 2006
    Location
    Britain, South Coast
    Posts
    1,030
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Inline Repeat Extension - any need?

    Anyone think they'd use an Inline Repeat Extension?

    It's a more straightforward fastloop, it works like this:


    Repeat 12 times:
    -- Actions go here

    And voila, it fastloops 12 times. Functionality is identical to this:

    Always
    -- Start loop 12 times

    On Loop
    -- Actions go here


    Think anyone'd use it? It's super-simple to make, and can be combined with other conditions as follows:

    Repeat 12 times
    + Counter < 5
    -- Add 1 to counter

    The counter stops at 5

    Note that it's not the same as the existing repeat function, which is an Always that switches off after X continuous triggers.

  2. #2
    Clicker

    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,734
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    Re: Inline Repeat Extension - any need?

    Sure,I would gladly use it.

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

  3. #3
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Inline Repeat Extension - any need?

    Quote Originally Posted by Dines
    It's super-simple to make
    Really? Go on then.
    EDIT: I actually have an idea how it could work, but I'm pretty sure you're not allowed to call triggered conditions from inside a condition.
    EDIT2: RFUNCTION_PUSHEVENT might allow it to work, assuming that you can call EVFLAGS_ALWAYS conditions with it.

  4. #4
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Inline Repeat Extension - any need?

    Can't you call triggered conditions from the part of the extension that runs every frame? I never have used the extension SDK but from what I understand that seems possible.
    Working as fast as I can on Fusion 3

  5. #5
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Inline Repeat Extension - any need?

    You could do, but how would you know how many times to call it?

  6. #6
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

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

    Re: Inline Repeat Extension - any need?

    I guess you could.. trigger it once every frame, and then inside the condition that's triggered, trigger it for the number of times specified - 1. But please don't do that.

  7. #7
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Inline Repeat Extension - any need?

    If you wouldn't mind, could you teach me how you did this (when you do it?)

  8. #8
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Aug 2006
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Inline Repeat Extension - any need?

    This sounds interesting, it could be interesting to have some actions that effect the repeat also like stop and pause/wait.

    So like

    Repeat "Run" 12 times:
    Add random value to counter

    Counter is Greater Than 150:
    Stop Repeat "Run"

    These repeats would be nameable like a fastloop? or would you just directly use them to run actions?

  9. #9
    Clicker Multimedia Fusion 2

    Join Date
    Sep 2006
    Location
    Britain, South Coast
    Posts
    1,030
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Inline Repeat Extension - any need?

    It doesn't quite work like that - each repeat repeats only its own event. So for instance:

    1. Repeat 12 times:
    ....[actions]

    2. Repeat 3 times:
    ....[actions]

    Will repeat line 1 twelve times and then go on to line 2 which will repeat 3 times.

    So one possible use may be:

    Repeat nObjects("Bad Guys") times
    + BadGuy's ID = index("Repeat")
    --- [Do some AI stuff]

    Would loop each badguy. In practice the new foreach object would do that too, but this is just an example.

    You'll be able to retrieve your current index as an expression, and hopefully be able to prematurely stop the loop.

  10. #10
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Inline Repeat Extension - any need?

    Quote Originally Posted by Dines
    and hopefully be able to prematurely stop the loop.
    How would we do that? Sub conditions? :p

    Well, actually, I just thought, you could use a function object o fastloop call to evaluate more conditions
    Working as fast as I can on Fusion 3

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Repeat rotation
    By Earl in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 16th July 2012, 06:54 AM
  2. Beta: Inline Loop Object
    By LB in forum Extension Development
    Replies: 6
    Last Post: 19th August 2010, 05:23 AM
  3. Inline Loop Object
    By Stephen in forum Released Extensions
    Replies: 0
    Last Post: 19th August 2010, 05:19 AM
  4. Slow down Repeat
    By Taceo in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 26th July 2010, 06:58 PM
  5. Pb Evènement Repeat
    By CrystalNoir in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 6th August 2006, 12:24 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
  •