User Tag List

Results 1 to 3 of 3

Thread: Random Key Pressing Problem

  1. #1
    No Products Registered

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

    Random Key Pressing Problem

    I have recently been making a program that randomly presses keys based on what you select from a drop down list. However, when I duplicated the edit box and the drop down list and added IDs everything stopped working. What can I do to make it work, without cloning them and programing each set separately?


    View MFA

  2. #2
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,544
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Random Key Pressing Problem

    The "Alterable Value A of Edit Box = Alterable Value A of List Object" condition does not do anything and makes no sense. It is affecting the scoping of the next condition.


    Every time the game reaches that condition, it will see it is a value comparison condition. It then scopes the "earliest" (first created) instances of both objects, and compares them. Since you spread values, both will have Value A = 0, and this condition will always be true. Since only the "Earliest" list object is scoped now, when it proceeds down the line and checks the

    "1 chances out of Value A(Edit Box)"

    condition, the only edit box scoped will be the "earliest" (even if it hadn't been already scoped, it would scope this one anyway as it is again referencing a single value).

    So your program is only checking the earliest edit box. No matter which boxes you edit, only the value of the earliest edit box and the earliest select box will be used.




    In order to make this program work, you need to put your code inside a "Loop". This loop will iterate through each instance pair of the objects, and run the comparison on them, once per frame. I've made an example for you of how this works.

    MFA attached
    http://sites.google.com/site/claniraq/stuff/1274495101-key_presser.mfa?attredirects=0&d=1

  3. #3
    No Products Registered

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

    Re: Random Key Pressing Problem

    Thanks a lot. Also, when running loops does mmf2 go through every instance of an object in order? Or is it random?

Similar Threads

  1. Random displaying problem!
    By Radical in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 25th October 2013, 09:44 PM
  2. Random problem
    By dontknow in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 12th June 2011, 07:18 AM
  3. A random problem
    By Watermelon786 in forum File Archive
    Replies: 3
    Last Post: 2nd January 2011, 08:50 PM
  4. RANDOM problem
    By siriso in forum The Games Factory 2 - Technical Support
    Replies: 8
    Last Post: 8th October 2008, 07:16 AM
  5. random value + another problem
    By Tolkkiz in forum The Games Factory 2 - Technical Support
    Replies: 5
    Last Post: 13th November 2007, 08:27 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
  •