User Tag List

Results 1 to 5 of 5

Thread: XMouse and YMouse

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Jun 2009
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    XMouse and YMouse

    Hey,
    So I am trying to make something of a drag your finger and it shoots type thing.
    where I start my drag on one object by Repeat while mouse is pressed and mouse pointer over object.
    Then end by *negate* repeat while mouse is pressed. -Create object and set object speed to blank etc...

    But the problem is, I can't set the direction of my object to where I dragged my finger. With a PC app I would just say direction of mouse but I can't do that with an app. I tried to use XMouse and YMouse positions but when I run it on my ipad it won't even load the frame. Any ideas?

  2. #2
    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)

    Re: XMouse and YMouse

    It should work with the mouse : mouse coordinates return the position of the current touch.
    If your application crashes, send it to me.

  3. #3
    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)

    Re: XMouse and YMouse

    Just place the multitouch object in your frame and use X Touch (Last New Touch) and Y Touch (Last New Touch). Replace 'repeat while mouse is pressed' with 'a touch is active', same with the negated one.

    If you want to test it on your PC it will still work; the mouse emulates the touch screen.

  4. #4
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    AndyH's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,445
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: XMouse and YMouse

    There are expressions in the multitouch object that return the angle and DeltaX/DeltaY values of the touch which are worth looking at.
    Andy H @ ovine.net
    Awful Jokes - a new cartoon every day: http://awful.ovine.net/
    Ovine's games: http://www.ovine.net

  5. #5
    Clicker Multimedia Fusion 2

    Join Date
    Jun 2009
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: XMouse and YMouse

    Ok thanks! That worked

Similar Threads

  1. How to limit XMouse and YMouse area?
    By J3sseM in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 18th December 2016, 06:52 AM
  2. Scaled preview of X,YMouse in the corner.
    By 2xD in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 15th November 2013, 01:56 PM
  3. Fixing the Zoom layer effect XMouse YMouse offset.
    By MrCyberpunk in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 10th February 2012, 11:48 PM
  4. Create object relative Xmouse/Ymouse?
    By SP6MEN in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 12th April 2010, 01:50 PM
  5. override xmouse ymouse-movement-then reactivate
    By DEKE15 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 29th March 2009, 10:32 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
  •