User Tag List

Results 1 to 5 of 5

Thread: Double-tap

  1. #1
    No Products Registered

    Join Date
    Apr 2010
    Location
    Dr. Robotnik's Base
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Double-tap

    Is there anyway I can make a character run by double-tapping a key?

    For example, when I double tap the right key, I want the movement speed of the active object to increase by a number.

    Thank you in advance

  2. #2
    Clicker Multimedia Fusion 2 Developer
    Blue66's Avatar
    Join Date
    Jan 2008
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Double-tap

    Don't know if that is the most efficient way, but I would solve this in 3 events.

    1. (this is just for reducing the tap-o-meter timer)
    <player> Value X > 0
    - sub 1 from <player>Value X

    2. (this sets up the tap-o-meter)
    joystick direction is pressed
    <player> Megaspeedvalue = 0
    - add 50 (or any number you want) to <player> Value X

    3. (this triggers the increased speed)
    <player> Value X > 60 (or any number that's bigger than the last one)
    - add <player> Megaspeedvalue 10

  3. #3
    No Products Registered

    Join Date
    Apr 2010
    Location
    Dr. Robotnik's Base
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Double-tap

    I don't really understand what you're saying (I'm still new to this).

    Can you maybe describe this in more detail?

  4. #4
    Clicker Multimedia Fusion 2 Developer
    Blue66's Avatar
    Join Date
    Jan 2008
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Double-tap

    Let's take the default values from my example.

    First event just makes Value X a countdown. Whenever it's more than zero, it will substract 1 per frame. This means when you have a default frame rate of the game of 50, and you set the value to 50, it will take the game one second to reach zero again.

    The second event is the double tap. It will add 50 to the countdown as soon as you press the button. If you press it repeatedly, it will add more and more to the countdown. But because it's a countdown, the number will always go back to zero if the player waits too long. This is to give the player a time limit in which he has to tap the key again to run faster.

    The third event is the actual action that happens if the player has done it right. It will activate, as soon as the countdown (Value reaches 60. This means that the player has 40 frames (barely a second) time to touble tap and make the magic happen. Remember, when you press it once, it adds 50 to the countdown, which will be lowered by 1 per frame. So if it's still 10 or more and you hit the button again, it will go over 60 and the event will trigger.

  5. #5
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Double-tap

    Chaos has a couple of examples on his site that use this method:
    Examples
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


Similar Threads

  1. Double event
    By FlinkGigitty in forum File Archive
    Replies: 3
    Last Post: 20th August 2010, 10:58 PM
  2. Double Jump
    By ToffeeandPebbles in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 7th August 2010, 02:34 PM
  3. Double tap a key
    By Nick in forum File Archive
    Replies: 8
    Last Post: 31st May 2008, 12:33 PM
  4. double jumping
    By Solen in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 16th May 2008, 11:53 PM
  5. Double jump?
    By Davidddd in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 18th March 2008, 07:52 AM

Posting Permissions

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