User Tag List

Results 1 to 6 of 6

Thread: How to fix this bug...

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Mar 2012
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to fix this bug...

    Please help!

    How can I fix the bug on this example?

    As you can see, when you press Control, player gets a shield for 3 seconds to help him not get hurt by bullets. Each time you press Control, player loses one shield.

    What I want to achieve is that, when the player has the shield active on him, if he presses Control nothing happens. I mean, at this time, if player presses Control 3 times very quickly, he loses his 3 shields.

    Thanks a lot!
    shield.mfa

  2. #2
    Clicker Fusion 2.5Android Export ModuleFirefly 3D Module

    Join Date
    Sep 2010
    Posts
    577
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    add a condition to the ctrl condition! Turn on flag 1 on the player when you press ctrl/give shield, that way you make the "press ctrl" condition available only when flag 1 is off...then when he loses the shield turn off the flag again. That should do it I think

  3. #3
    Clicker Multimedia Fusion 2

    Join Date
    Mar 2012
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey Klownzilla!

    Thanks for your idea, but I tried it and can't get it to work.

    What happens, is that if the player presses Control repeatedly when the shield is active before the 3 seconds end, he will lose the 3 shields at once.

    I need to achieve that, if the shield is active and player presses Control again before the shield disappears, then nothing will happen.

    Can you download my MFA and try to see what is happening and help me with a fix? Or anyone else who can help me with that?

    THANKS A LOT!!!

  4. #4
    Clicker Fusion 2.5Android Export ModuleFirefly 3D Module

    Join Date
    Sep 2010
    Posts
    577
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Worked perfectly for me when adding "Internal flag 1 is off" (On your player object) in your "Upon pressing control" so make it look like this

    "Upon pressing control"
    +"Internal flag 1 is off"-------------------------> set internal flag on (On your player object) then after 3 seconds turn flag 1 off again. That way you can only press control while flag 1 is off and when you press control it immediately turns flag 1 on so you can only press control 1 time every 3 seconds


  5. #5
    Clicker Multimedia Fusion 2

    Join Date
    Mar 2012
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Many many many thanks!!! I'm newbie to flags, so I guess I forgot one step.

    I didn't put the "Internal flag is off" under the "Upon pressing Control" condition.

    I tried as you said and now it works perfectly.

    Once again, thanks a lot!

  6. #6
    Clicker Fusion 2.5Android Export ModuleFirefly 3D Module

    Join Date
    Sep 2010
    Posts
    577
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    No problems Glad you got it!

Posting Permissions

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