User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 13 of 13

Thread: Scrolling Menu

  1. #11
    Clicker 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)

    Join Date
    Feb 2007
    Posts
    82
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The human finger is not good at tapping and relasing in exactly the same position. It's much easier to do this via the mouse than via a finger on iOS.

    You will probably want to allow a greater tollerance on release than pixel perfect.
    e.g.
    IF the player taps at 30,30.
    You will want to detect for release +-10 pixels around this area. (or more)
    It'd be easier if you make this a variable that you can adjust. This would allow you to easily tweak values in the future. Could even put it into the control options.

    So you'd want something like. (This isn't proper code, just using it to get the idea across)
    IF on Release X>20<40
    AND Y>20<40
    THEN Do action

    OR, you could create an active at a certain size and position when the player clicks and check for a release when on the active. That'd get you the same thing, although may not be as efficient.
    You can then make it invisible so the player doesn't see it. It'd allow you to visibly see if your tap & release detection is working.
    That is IF the tap release allows you to compare if it is overlapping an object or not.

    Actually. If you are comparing a click on a button, then you will probably want to detect the tap release on the button.
    Unless the button is draggable. Then you need to detect an amount of drag has occured.

  2. #12
    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)
    I think you should create a small dummy object.

    On touch down / Set x position Dummy to x touch(last touch) / Set y position Dummy to y touch(last touch)

    On touch up
    Dummy is overlapping Button
    -> Do what you want.

    This should work...

  3. #13
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    Captain_Harris's Avatar
    Join Date
    Aug 2011
    Posts
    336
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you Brek and Francois

    you have inspired me to figure it out.

    @ Brek: I have already dried it with + and - Pixel. But it hasn't work. the x position was allways the same ( because of the scrolling layer )

    I have created a Dummy Object. ( removed the "follow the frame" option )

    Mouse down / set x and y position of Dummy to x and y mouse
    set val A to x Dummy
    set val B to y Dummy

    Touch 0 has endet / set val C to x Dummy and Val D to y Dummy

    if val a = val c
    and
    if val b = val d

    jump to Frame X


    Thank you Guys

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Scrolling Menu or keyboard input object?
    By Aloan in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 30th April 2011, 11:25 PM
  2. Pop-up menu bug
    By MechatheSlag in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 7th November 2009, 02:13 PM
  3. Help with Camera Scrolling for Side-Scrolling
    By ThatOtherGuy in forum File Archive
    Replies: 4
    Last Post: 29th August 2009, 09:38 PM
  4. MENU HELP
    By mmf2 in forum File Archive
    Replies: 5
    Last Post: 2nd June 2009, 05:58 AM
  5. Scrolling list (enhanced 'Nice Menu')
    By Nick in forum File Archive
    Replies: 13
    Last Post: 10th August 2006, 09:43 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
  •