User Tag List

Results 1 to 7 of 7

Thread: EVERY condition question

  1. #1
    No Products Registered

    Join Date
    Aug 2006
    Location
    Italy
    Posts
    117
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    EVERY condition question

    Hi
    My question:

    I would like to get a situation like this:
    every n where n is a variable
    do: ...

    Now what we can do is:
    every 1 were 1 is a constant
    do: ...

    This is the case or am I wrong?
    I wonder how can I get the same thing!

    tnks

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    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)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: EVERY condition question

    Can you please give an example usage. n can't be "a variable" because there are many types of data storage which have different ways of being iterated. For example, you could iterate through the Alterable Value A of multiple instances of an object, or the XYZ of an Array object, or the lines of a listbox. Generally speaking this would use fastloops. Are you effectively wanting a 'foreach' loop in which the subject is a specific object, and the event runs once for each instance of that object, or are you trying to access different elements of a specific object instance? Or are you just trying to make an event which runs n times?

    Also, if you haven't done so already then have a look at the various tutorials at http://www.clickteam.com/eng/learning_resources.php and refer to the \examples\ folder and MMF2 CD #2 for examples on how to use specific objects.
    .:::.Joshtek.:::.

  3. #3
    No Products Registered

    Join Date
    Aug 2006
    Location
    Italy
    Posts
    117
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: EVERY condition question

    I try to explain better

    The EVERY condition allows only a numerical constant:

    + EVERY .25 sec
    + CHECKBOX "repeatN" CHECKED
    + CHECKBOX "auto" CHECKED
    START LOOP "s" 1 times

    I would get such a situation:

    + EVERY (Global Value A) sec
    + CHECKBOX "repeatN" CHECKED
    + CHECKBOX "auto" CHECKED
    START LOOP "s" 1 times

    I would like to use (Global Value A) and change the value during the execution, using an interactive cursor, and not only have a fixed value.

    I wonder how can I do in a way so easy.
    All here.
    :-)

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jun 2006
    Location
    UK
    Posts
    519
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: EVERY condition question

    He's talking about having an expression editor on the timer object. Something that I believe was discussed in the past?

  5. #5
    No Products Registered

    Join Date
    Aug 2006
    Location
    Italy
    Posts
    117
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: EVERY condition question

    yes yes :-)
    expression editor inside a timer ... It would be perfect!

  6. #6
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    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)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: EVERY condition question

    Oh, every as in the timer not as in the concept. You can make your own system in which you regularly increment the counter or global value and compare its value to n (see this topic). You can also give the Timer and Time X objects a try.
    .:::.Joshtek.:::.

  7. #7
    No Products Registered

    Join Date
    Aug 2006
    Location
    Italy
    Posts
    117
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: EVERY condition question

    thanks Joshtek for a suggestion :-)
    This are the solution for my problem:
    ____________________________________________
    start of frame set COUNTER to 0
    ...
    + COUNTER >= framerate
    + CHECKBOX "repeatN" CHECKED
    + CHECKBOX "auto" CHECKED
    set COUNTER to 0
    START LOOP "s" 1 times
    ...

    + CHECKBOX "repeatN" CHECKED
    + CHECKBOX "auto" CHECKED
    add to COUNTER simplecursorval+1/simplecursormaxval
    ____________________________________________

    OR more compact

    ____________________________________________
    + COUNTER >= framerate
    + CHECKBOX "auto" CHECKED
    set COUNTER to 0
    START LOOP "s" 1 times
    ...
    + CHECKBOX "auto" CHECKED
    add to COUNTER simplecursorval+1/simplecursormaxval
    ____________________________________________
    :crazy:

Similar Threads

  1. Else condition
    By FMistakes in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 27th July 2013, 10:22 AM
  2. Question regarding the writing of a condition...
    By RGBreality in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 8th July 2011, 02:35 PM
  3. Is this condition possible?
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 13th February 2011, 08:31 PM
  4. swf condition
    By Skyhunter in forum SWF/Flash Export Module Version 2.0
    Replies: 4
    Last Post: 5th November 2010, 02:13 AM
  5. [Question] ActiveX > Action/Condition/Expr Output
    By RaiFox in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 27th December 2006, 09:16 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
  •