User Tag List

Results 1 to 4 of 4

Thread: How do I avoid clickthrough?

  1. #1
    No Products Registered

    Join Date
    Jul 2006
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do I avoid clickthrough?

    I'm sure this question has been asked and answered but I couldn't find it.

    Say I have two active objects that are overlapping. They both have the same qualifier. If the player clicks on the top object where it overlaps the bottom object, the event line affects both objects. How do I prevent this?

    (I'm starting to think about a card game and I don't want multiple cards in a stack to be affected by me clicking on the bottom card.)

  2. #2
    No Products Registered

    Join Date
    Sep 2010
    Posts
    78
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I avoid clickthrough?

    If UserClicksOnObject>Active
    + MouseOverObject>Active
    + Active-IsOverlapping>Active =
    Active.Destroy

    I took that guess but if it doesn't work then sorry I would know no further although to know that this should be possible.

  3. #3
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I avoid clickthrough?

    You could use the Select Object extension to select only the frontmost object.

  4. #4
    No Products Registered

    Join Date
    Jul 2006
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I avoid clickthrough?

    Thanks for the replies. I think the easiest solution will be to use the y coordinate of the card on the bottom. Since I know that the bottom card of my stack is at a y position of, say, 161 I can simply do this:

    If user clicks on Card1
    +Card1 Y position = 161
    [Do Something]

    That seems to work, even where there are multiple active objects underneath the one I'm clicking on. (As long as they are offset, of course.)

Similar Threads

  1. Avoid white seam when rotating
    By StingRay in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 9th July 2013, 08:26 PM
  2. How to avoid pixel tearing(?) when scaling?
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 21st May 2013, 01:51 PM
  3. How do I avoid that an object(ball) goes through the obstacle?
    By ineke in forum Multimedia Fusion 2 - Technical Support
    Replies: 14
    Last Post: 17th October 2012, 01:30 PM
  4. Noob Question - what to avoid using?
    By diefox in forum SWF/Flash Export Module Version 2.0
    Replies: 3
    Last Post: 13th June 2011, 04:56 PM
  5. avoid to process gfx not seen
    By integrality in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 12th October 2006, 10:46 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
  •