User Tag List

Results 1 to 6 of 6

Thread: How to ignore tap/touch when swiping screen?

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Mar 2013
    Posts
    263
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question How to ignore tap/touch when swiping screen?

    I am using a couple of different inputs to my mobile game when controlling the character.

    I am using the action:
    User clicks with left mouse button to register the tap from the fingers on the touch-screen and to make the player character jump.
    (Btw, if there is a better way of registering this except for "User clicks with left mouse button" please let me know.)

    Then I am using the Multiple Touch object to register swipes on the screen, in order to make the character step to the side.


    The problem I am facing with this setup is that I am never able to make the character step to the sides, since the game never reads any input beyond that specific User clicks with left mouse button.

    How can I make it possible to tap the screen in order to jump, and also make it possible to swipe so that the character can sidestep without the two inputs interrupting eachother?


    This is the example file I used to make the swiping: Swipe.mfa

  2. #2
    Clicker Fusion 2.5 (Steam)
    FalconsoftIndustries's Avatar
    Join Date
    Aug 2017
    Location
    Mandurah Western Australia
    Posts
    118
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Hmmm... it should be possible though it may require a tap and touch and swipe detection extension package.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,117
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    Just don't use the Left Click mouse events.

    Have something like this

    Touch 0 is Active
    Add 1 to Value "touch timer"

    Touch 0 has finished
    > "touch timer" is lower than 10
    JUMP
    Set "touch timer" to 0

    This would mean the player has to quickly touch and release in order to register a jump - which won't interfere with drag inputs.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Mar 2013
    Posts
    263
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    DaveC, i tried something similar like that, but since i use the platform movement object and i want the abilitiy to hold jump while in the air in order to jump higher, that causes yet another issue.

    I would like to have these control options:
    1) Jump by tapping the screen
    2) Jump higher by holding down on the screen
    3) Sidestep by swiping to the sides of the screen

    and right now #2 gets in the way of making #3 work.

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,117
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    I'm not sure if this is the control scheme you had in mind, but this could be a good base to build on... touch controls are always an interesting dilemma to solve!

    The logic on this for me was basically..

    1) if the player taps a touch and does not hold = jump
    2) if the player is holding a touch near to where they initiated the touch = jump+hold jump
    3) if the player holds and releases a touch ( a swipe ) and the touch ends up far enough away from the initial point of the touch = move left or right

    my computer isn't set up to test on a phone at the moment, so I could only test my "drag" movement with the mouse.. not sure how it will translate to a phone. Let me know how it goes!
    Attached files Attached files

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Mar 2013
    Posts
    263
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    this was exactly what i was trying to do!
    thanks alot DaveC. now i have something to work with!

Similar Threads

  1. How could I make Horizontal Scrolling/swiping
    By Bluemilkao in forum Android Export Module 2.5
    Replies: 3
    Last Post: 24th December 2016, 10:09 PM
  2. Swiping controls + Swipe Widget
    By Yemibox in forum Developer Services
    Replies: 3
    Last Post: 16th November 2016, 10:19 PM
  3. How do I jump using touch screen?
    By Cobstar in forum Android Export Module 2.5
    Replies: 1
    Last Post: 27th August 2015, 06:31 AM
  4. Swiping to scroll
    By macca02 in forum Android Export Module Version 2.0
    Replies: 2
    Last Post: 7th October 2013, 11:45 PM
  5. Anybody use a touch screen PC for iOS dev?
    By AyreGuitar in forum iOS Export Module Version 2.0
    Replies: 0
    Last Post: 14th March 2012, 06:43 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
  •