User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Multiple Touch

  1. #1
    Clicker Multimedia Fusion 2iOS Export Module
    amaire13's Avatar
    Join Date
    Jul 2012
    Posts
    88
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Multiple Touch

    When using multiple touch, is there a way to specify a certain thing you want touched, such as an active? Or does it only record touches made anywhere on the frame?

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    Game_Master's Avatar
    Join Date
    Jul 2007
    Location
    England
    Posts
    1,705
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Create another active object, called TouchZero, TouchOne etc etc, which is 1 pixel by 1 pixel, then:

    + [Multiple Touch] Touch 0 is active
    - [TouchZero] Set X Position to XTouch( "Multiple Touch", 0)
    - [TouchZero] Set Y Position to YTouch( "Multiple Touch", 0)

    + [Multiple Touch] Touch 1 is active
    - [TouchOne] Set X Position to XTouch( "Multiple Touch", 1)
    - [TouchOne] Set Y Position to YTouch( "Multiple Touch", 1)

    Etc, etc.

    Then just test to see if the Touch active objects overlap the other active object.

  3. #3
    Clicker Multimedia Fusion 2iOS Export Module
    amaire13's Avatar
    Join Date
    Jul 2012
    Posts
    88
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How do I make it so it can handle two touches at once?

  4. #4
    Clicker Multimedia Fusion 2iOS Export Module
    amaire13's Avatar
    Join Date
    Jul 2012
    Posts
    88
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    To clarify more, in my game movement is controlled with two left and right arrows and a jump button. While the user is moving left and right I also want them to be able to jump.

  5. #5
    Clicker Multimedia Fusion 2iOS Export Module
    amaire13's Avatar
    Join Date
    Jul 2012
    Posts
    88
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Anyone know how to make multiple touch capable of handling two touches at once?

  6. #6
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)
    First, make sure your Frame has "multitouch" set (it defaults to single touch). Then you need to check which touch was made. There are a couple examples in the examples section that show you an easy way to do it.

  7. #7
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleXNA Export Module
    DistantJ's Avatar
    Join Date
    Jan 2008
    Location
    Gloucester, UK
    Posts
    2,144
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Instead of "TouchOne" and "TouchZero" I just create instances of the same active object with a spread value and set them to the touch position of that spread value, then check for overlap events. I usually make the object bigger than 1 pixel too, more 'finger size'.

  8. #8
    Clicker Fusion 2.5iOS 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)
    SolarB's Avatar
    Join Date
    Feb 2012
    Location
    Melbourne
    Posts
    904
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Is it possible to request an event like "touch (x) is/is not over "Active"? This would save us all using more useless actives.

  9. #9
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Yes, it is in the making, and much more.

  10. #10
    Clicker Fusion 2.5iOS 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)
    SolarB's Avatar
    Join Date
    Feb 2012
    Location
    Melbourne
    Posts
    904
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Great! Thanks Francois

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Multiple touch
    By bybyblue in forum Android Export Module Version 2.0
    Replies: 1
    Last Post: 29th August 2013, 12:16 AM
  2. pinch in multiple touch
    By ineke in forum Android Export Module Version 2.0
    Replies: 4
    Last Post: 26th August 2013, 09:20 AM
  3. Multiple touch being really weird?
    By DistantJ in forum iOS Export Module Version 2.0
    Replies: 0
    Last Post: 5th January 2013, 07:34 PM
  4. Multiple Touch Example
    By AndyH in forum iOS Specific Example Files
    Replies: 5
    Last Post: 23rd January 2012, 12:04 AM
  5. Multiple Touch YTouchDelta bug
    By AndyH in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 7th September 2011, 05:10 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
  •