User Tag List

Results 1 to 4 of 4

Thread: I need help (whit Counters)

  1. #1
    Clicker Fusion 2.5 (Steam)

    Join Date
    Feb 2016
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    I need help (whit Counters)

    Hello people of "Clickteam" community
    First for all, my native languaje is Spanish, sorry for the traslate!
    About 3 weeks ago I start learning programming in ctf 2.5, and I'm very happy with this Software.

    I need help and I explain below.

    I am creating a game platform "sidescroller". I want to do that when pressed (1 time) a key (Q for example). Every 1 second, a counter of 10, one point is subtracted. And when that happens (only when this happen), things like "power ups" occur (that`s not the problem).

    I would like to do something like a "switch", where pressing once "Q" is activated and deactivated. And If the "Swhitch" is enabled, subtract 1 point and if its turning off rejoining until 10 ...
    I hope you understand me, I speak Spanish and use google Traslate.

    Thank you!

    PD: As far as I could, I did that when Q is pressed, the counter becomes visible and there subtracts 1 from the counter, but I see that is not the best way, it is difficult, and i want to see always the counter in the screen.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,155
    Mentioned
    27 Post(s)
    Tagged
    1 Thread(s)
    Hello DillonKun and welcome

    I'm not sure I got exactly what you need,
    but if you need to "switch" between two situations,
    the quickest and cleanest way is probably "toggling" a flag

    Like:

    upon pressing Q
    >>> (object*) toggle internal flag "xx" (a number of your choice)

    (object) internal flag "xx" ON
    >>> do the subtract thing from counter

    (object) internal flag "xx" OFF
    >>> do the rejoin thing to counter


    * choose an active object always present in the frame, like your player
    or prepare a new object to use specifically for these means
    (you'll probably find his values and flag useful for other tasks too)

  3. #3
    Clicker Fusion 2.5 (Steam)

    Join Date
    Feb 2016
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi, thanks for your help.
    I will try, you example!
    See you later!

  4. #4
    No Products Registered

    Join Date
    Jul 2015
    Location
    MI, USA
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In this example, "Counter 2" would be your "Counter of 10"
    You'll have to insert another counter, and in this example that counter is called "Counter".


    Upon pressing Q *INSERT* "Counter" = 0 *INSERT* Timer is greater than 0:
    - Set timer = 0
    - Set "Counter" = 1

    Upon pressing Q *INSERT* "Counter" = 1 *INSERT* Timer is greater than 0:
    - Set timer = 0
    - Set "Counter" = 0

    "Counter" = 0 *INSERT* Every 1 second
    - Subtract 1 from "Counter 2"

    "Counter" = 1 *INSERT* Every 1 second
    - Add 1 to "Counter 2"


    Hope this method is simple enough, and useful.

Similar Threads

  1. I have a question and need help whit it
    By alexander in forum Fusion 2.5
    Replies: 4
    Last Post: 4th October 2014, 07:53 AM
  2. Software MMF2 comunicate whit app iphone and android..advice?
    By daniele in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 7th September 2013, 01:45 AM
  3. to flow the letters alphabet whit global value!
    By daniele in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 15th October 2008, 11:10 AM
  4. help whit camera
    By camuflash in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 18th December 2006, 09:57 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
  •