User Tag List

Results 1 to 5 of 5

Thread: Function Eggtimer problem // Power Function for MMF2 Android?

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    May 2013
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Function Eggtimer problem // Power Function for MMF2 Android?

    Greetings, I am experiencing a puzzling issue with the Function Eggtimer Object. Please see the attached file.

    When you press 'A', run a function which adds 1 to the counter. When you press 'B', run a function which runs another function which adds 1 to the counter.

    The problem is, when you press 'B', somehow 2 is added to the counter. Why?

    *****************

    I didn't want to make another thread for this other topic. Is someone able to port the Power Function Object (by Chris Branch) and make it available for Java/Android? The only reason I am using the Function Eggtimer Object is because the Power Function Object is not available for MMF2. Power Function seems to have no trouble with layers upon layers of nested functions, and is the function object I used the most in MMF 1.5.

    function_eggtimer_problem.mfa

  2. #2
    Forum Moderator

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

    Function Egg Timer Problem Fixed?

    Maybe fixed?

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

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    May 2013
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, Marv. Well, you "fixed" it, in the sense that you removed the nested function. However, the MFA I posted is just an example of a bug in my other (much more complex) program. (I'm having the same issue in that program as well.) My point is, I need to be able to have nested functions, such as what I have in the above-mentioned example MFA. So I'm wondering, is there a way to fix this issue while keeping the nested function?

    And again, on another note, is it easy for someone to port the Power Function Object to MMF2 Android?

    Thanks, everyone!

  4. #4
    Forum Moderator

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

    Function Egg Timer Fixed 2?

    Well poo. I need to be educated. Does this fix it? If not, can you educate an old goat like me?

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

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    May 2013
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That fixed it! I still don't understand why it runs twice by default, but this solves the issue. Thanks for the help!

Similar Threads

  1. Function Eggtimer
    By tekila in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 15th December 2011, 12:36 PM
  2. Function eggtimer widget
    By Hristos in forum Widgets
    Replies: 2
    Last Post: 29th May 2009, 07:38 PM
  3. Function Eggtimer for MMF2 released
    By Anders in forum Extension Development
    Replies: 7
    Last Post: 14th July 2006, 03:50 PM
  4. Function Eggtimer?
    By Cocodrilo in forum Extension Development
    Replies: 3
    Last Post: 11th July 2006, 07:54 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
  •