User Tag List

Results 1 to 3 of 3

Thread: HELP - How can I subtract a global value from a counter?

  1. #1
    No Products Registered

    Join Date
    Dec 2015
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    HELP - How can I subtract a global value from a counter?

    Hello :)
    I'm new in Clickteam Fusion 2.5 and I have a question.

    First, sorry if I write something bad or I don't express well, because english isn't my main language XD
    Now, I'm going to ask you something.
    Actually, I'm developing a very simple game. In this game, when you pass a specific number of floors a shop appears and you can buy a damage increase.
    With any increases, the projectile deals 1 of damage, and when the projectile impacts with an enemy, it subtracts 1 from the enemy's counter.
    If you take the damage increase, it subtracts 2 from the enemy's counter.
    I thinked that the easiest form is creating an event that when the projectile collides with the enemy, a global value that I named "Damage" is substracted from the enemy's counter. But the bad thing is that I don't know how can I subtract a global value from a counter.

    Do you know how to do this or another way?

    Thank you :D

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Gradius's Avatar
    Join Date
    Jul 2015
    Posts
    117
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Hi Alexander, I think It's pretty simple to do what you want. When your projectile collides with the enemy, you can choose "Subtract from Counter", then when the expression editor opens click on "Special" (it looks like a gear wheel icon) next click "Retrieve a Global Value" from the drop down menu, then select your global value "Damage". That should hopefully work I think.

  3. #3
    No Products Registered

    Join Date
    Dec 2015
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you!
    It works correctly

Similar Threads

  1. Global Counter Help!
    By Kolar_Games in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 2nd December 2013, 09:51 AM
  2. Counter Value/Global Value into a Filename?
    By antipode in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 8th February 2012, 09:47 PM
  3. MultiMedia Fusion 2 Subtract from counter
    By leprelady2011 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 24th October 2011, 03:08 AM
  4. Global counter
    By willy in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 27th September 2007, 07:18 PM
  5. global value equal to counter
    By rhoymand in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 23rd November 2006, 08:20 PM

Tags for this Thread

Posting Permissions

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