User Tag List

Results 1 to 10 of 10

Thread: Key object tendency to run first?

  1. #1
    No Products Registered

    Join Date
    Nov 2009
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Key object tendency to run first?

    I'm trying to do something like
    Code:
    1 Always
    2		Set Alterable Value A to 0.
    3 Key Object: On key (Alterable Value B) pressed
    4		Set Alterable Value A to 1.
    5 Alterable Value A = 1
    6		finish.
    But for some reason, finish is never run. Through various tests I have come to the conclusion that MMF is running lines 3 and 4 before 1 and 2. It appears to work if I put in the actual key number instead of alterable value b, though.

  2. #2
    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: Key object tendency to run first?

    Is line 3 red?

    If it is, that means it's an immediate condition.

  3. #3
    No Products Registered

    Join Date
    Nov 2009
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Key object tendency to run first?

    That would indeed be the problem. Now, is there a solution besides putting lines 1 and 2 at the very end of the code?

  4. #4
    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: Key object tendency to run first?

    You could have line 3 trigger line 6

  5. #5
    No Products Registered

    Join Date
    Nov 2009
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Key object tendency to run first?

    Naturally that was an extremely simplified version of the code. There's a whole bunch of stuff that has to go before that, 'If Alt Val A = 1 and some other condition' stuff, etc.

  6. #6
    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: Key object tendency to run first?

    Well I think it will work if you don't use a value. It seems that you only want it to run right when the key is pressed, which is why I think that adding that condition to the other event would be alright.

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

    Re: Key object tendency to run first?

    Repeat While Key Pressed + Only One Action on Event Loop
    Working as fast as I can on Fusion 3

  8. #8
    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: Key object tendency to run first?

    He needs to get the key dynamically, I assume, or he wouldn't be using the key object.

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

    Re: Key object tendency to run first?

    Working as fast as I can on Fusion 3

  10. #10
    No Products Registered

    Join Date
    Nov 2009
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Key object tendency to run first?

    Yay, it works! Thanks, LB.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •