User Tag List

Results 1 to 3 of 3

Thread: multitouch - help needed

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

    Join Date
    May 2010
    Location
    Luxembourg
    Posts
    102
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    multitouch - help needed

    Hi,
    can't find a solution to the following problem:

    I move a slider for left/right movement of active. (works fine)

    additionally I want to tap on a button to shoot

    How to program so that it doesn't matter which touch occurs first? (ex. while shooting then touching slider to move)

    I tried all examples about multitouch I could find, they do always rely on touching a specific button first.

    Could someone push me in the right direction to solve this please?
    What is the logic to achieve that?

  2. #2
    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,142
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I'm not sure how the example works but for detecting multiple touch I always use multiple instances of the same object, and give them each an Alterable Value called "ID", use the 'Spread Value' function at the start of the frame to give them each a different ID starting with 0 ("Spread Value 0 in ID"), and have them go to the position of the touch which matches their ID. Then it's just a matter of seeing if the object overlaps something to see if it's being touched. Since they're instances of the same object, it won't discriminate based on the number of the touch (and if you do want to check the number of the touch, just check the ID value).

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    May 2010
    Location
    Luxembourg
    Posts
    102
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your help DistantJ!
    I got it working in a very simple example but for my project it's only working partially so far:
    it seems that I don't get the right XPosition of the right touch object, it's always taking the Position from the first touch.

Similar Threads

  1. What's up with multitouch?
    By MTCMusic in forum iOS Export Module Version 2.0
    Replies: 8
    Last Post: 23rd September 2013, 07:43 PM
  2. HELP NEEDED! Rockman X [Megaman X] Dashing Help needed.
    By Rockman in forum Multimedia Fusion 2 - Technical Support
    Replies: 22
    Last Post: 30th July 2013, 07:05 AM
  3. Multitouch Bug
    By WhiteEyeDesign in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 12th April 2013, 06:23 PM
  4. Multitouch
    By Keith in forum iOS Export Module Version 2.0
    Replies: 4
    Last Post: 10th August 2011, 03:20 PM
  5. Multitouch?
    By wizkidweb in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 10th September 2008, 02:12 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
  •