User Tag List

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

Thread: Clicking only 1 object while overlaps happen?

  1. #1
    No Products Registered

    Join Date
    Jul 2008
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Clicking only 1 object while overlaps happen?

    I'm building an app where there are multiple copies of the same object moving around the screen. The idea is that I want the user to be able to use a mouse-controlled click hand to select the item. When it clicks, I want only the blue object at the finger tip.

    The problem is that if that object happens to be overlapping another (even though that one might not be as visible to the user) the program selects both. As you see in the above example, even though it's clear to the user which one to click MMF thinks they are pointed at 2 objects. How do I make it so that it only selects one, and only the one that is "visible" to the hand (i.e. not one covered underneath it.)?

  2. #2
    No Products Registered

    Join Date
    Jul 2008
    Location
    Canada, QC
    Posts
    171
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Clicking only 1 object while overlaps happen?

    I Dont know if you have tried this yet or if it is what you are doing but


    [color:#FF0000]IF[/color] [color:#3366FF]Mouse[/color] is overlapping [color:#3366FF]blue[/color]
    [color:#33CC00]AND[/color]
    [color:#FF0000]IF[/color] [color:#CC0000](NEGATE)[/color] [color:#3366FF]blue[/color] is overlapping [color:#3366FF]blue[/color]

    [color:#FF6600]THEN[/color] Set position of [color:#3366FF]blue[/color] to Xmouse & Ymouse


    P.S. The colors are to help understand what is what

  3. #3
    No Products Registered

    Join Date
    Aug 2006
    Posts
    984
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Clicking only 1 object while overlaps happen?

    if you need it to select the frontmost object, you can use the select object extension

    User clicks on "Object"
    + Select Object Extension: Select Frontmost("Object")
    --> [your events here]

  4. #4
    No Products Registered

    Join Date
    Jul 2008
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Clicking only 1 object while overlaps happen?

    Quote Originally Posted by xyzzy
    if you need it to select the frontmost object, you can use the select object extension

    User clicks on "Object"
    + Select Object Extension: Select Frontmost("Object")
    --> [your events here]
    Where exactly do I look for the "select frontmost" command?

  5. #5
    Clicker Multimedia Fusion 2
    dragonguy's Avatar
    Join Date
    Apr 2008
    Location
    RULE BRITANNIA!
    Posts
    3,071
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Clicking only 1 object while overlaps happen?

    I know what to do:

    User clicks on ("Active")
    +Pick one of ("Active") at random.
    -Do what you want.

  6. #6
    No Products Registered

    Join Date
    Jul 2008
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Clicking only 1 object while overlaps happen?

    Quote Originally Posted by Snail
    Please, try your ideas before you post them. Multimedia Fusion 2 is unable to determine which object you clicked (at least through common events), which is why an object such as Select Object is useful. I do not know where to find it online, but it is in Fusion Updater.

    Good luck.
    So "Select Object" is an additional extension I need to acquire in order to implement this functionality?

  7. #7
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Clicking only 1 object while overlaps happen?

    Is the version of the select object on fusion updater up-to-date? The newest version is v0.09 beta 2: http://clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Board=17&Number=16564

  8. #8
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Tiles's Avatar
    Join Date
    Jun 2006
    Posts
    1,359
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Clicking only 1 object while overlaps happen?

    You don't need an extension for that. It's much easier. Use an counter or a Alterable / Global Value. Set its value to the fixed value of the object under the mouse. And voila, you have isolated one object by its fixed value. Which can be used for further needs

    - Mouse over Object -> set counter to fixed value of Object
    - User clicks at Object + fixed value of Object is equal counter -> do what you need to do

  9. #9
    No Products Registered

    Join Date
    Jul 2008
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Clicking only 1 object while overlaps happen?

    Quote Originally Posted by Tiles
    You don't need an extension for that. It's much easier. Use an counter or a Alterable / Global Value. Set its value to the fixed value of the object under the mouse. And voila, you have isolated one object by its fixed value. Which can be used for further needs

    - Mouse over Object -> set counter to fixed value of Object
    - User clicks at Object + fixed value of Object is equal counter -> do what you need to do
    I'm confused how this would work. Assume that the blue sphere objects in the example are moving. If I mouse over two overlapping objects, shouldn't the counter be activated by both? i.e. both objects will be detected on mouse over, even though one is above the other visually.

  10. #10
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Tiles's Avatar
    Join Date
    Jun 2006
    Posts
    1,359
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Clicking only 1 object while overlaps happen?

    That's the trick. The counter can just store one value. And that's why you just select one object then

    Try it. Is not this complicated

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Only show part of object that overlaps another
    By Ryzla in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 29th December 2013, 06:03 PM
  2. Event to happen when Object A is within a certain range of Object B?
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 20th April 2012, 09:56 PM
  3. Line overlaps and object?
    By mobichan in forum Multimedia Fusion 2 - Technical Support
    Replies: 14
    Last Post: 23rd June 2009, 01:41 AM
  4. Blocking Overlaps with an Object
    By Dines in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 27th April 2007, 04:04 PM
  5. clicking on object
    By westray in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 19th December 2006, 12:00 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
  •