User Tag List

Results 1 to 5 of 5

Thread: Help needed with a Simple counter issue

  1. #1
    Forum Moderator

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)

    Join Date
    Dec 2013
    Location
    Watertown, WI
    Posts
    4,421
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)

    Help needed with a Simple counter issue

    I have 5 Counters and 1 Button

    Counter 1 = 40 or 80 or 120 etc (increments of 40) and All the other ones are 0

    When I press the button, I want to
    Subtract 1 from counter1 and ADD 1 to counter 2.
    Then Subtract from Counter 1 and add 1 to Counter 3
    Then Subtract from Counter 1 and add 1 to Counter 4
    Then Subtract from Counter 1 and add 1 to Counter 5
    and then back to counter 2 untill counter 1 is 0.

    Is this easy to accomplish? I thought it was, but getting stuck

  2. #2
    Clicker Fusion 2.5Fusion 2.5+ DLC
    casleziro's Avatar
    Join Date
    Mar 2013
    Location
    United States
    Posts
    679
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    When the button is clicked, start a loop for the value of counter 1. On that loop, subtract 1 from counter 1 but add 1 to counters 2-5?

  3. #3
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,132
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    This way it'll be done one by one - so if you had say, a value of 53, it would cycle through each counter and add 1 while subtracting from counter 1 until it reaches 0. I literally just woke up so there's probably a more elegant solution haha
    Attached files Attached files

  4. #4
    Clicker Fusion 2.5Fusion 2.5+ DLC
    casleziro's Avatar
    Join Date
    Mar 2013
    Location
    United States
    Posts
    679
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    Oh I see what you were wanting now. Good solution DaveC.

  5. #5
    Forum Moderator

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)

    Join Date
    Dec 2013
    Location
    Watertown, WI
    Posts
    4,421
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    Told you it was easy.... I was thinking the hard way.

    Thanks DaveC

Similar Threads

  1. Counter updating issue or code issue?
    By KLiK-iT in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 14th March 2013, 01:48 PM
  2. Math formula needed (relatively simple)
    By Asholay in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 18th February 2013, 05:45 AM
  3. Multi touch - very simple example needed
    By iamjot in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 21st January 2012, 02:43 AM
  4. Random counter help needed
    By Skeets in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 12th July 2007, 08:17 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
  •