User Tag List

Results 1 to 4 of 4

Thread: mouse pointer in zone

  1. #1
    Clicker Multimedia Fusion 2iOS Export ModuleXNA Export Module
    Asholay's Avatar
    Join Date
    Nov 2008
    Location
    England
    Posts
    360
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    mouse pointer in zone

    How can you test for the mouse pointer in a zone for a scrolling game?

    I want to test when the mouse is over the toolbar (which occupies the left part of the screen) but the mouse in zone tests against the level itself - not the viewable frame.

    A workaround is to make a huge active object as the toolbar and test when the mouse is over that, but I can't have that as a practical solution.

  2. #2
    No Products Registered

    Join Date
    Sep 2006
    Location
    Germany
    Posts
    861
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: mouse pointer in zone

    you can compare the xmouse position to the "left frame value"

    Xmouse < X Left Frame + 256

    This should be true if the mouse is in the area left side of the frame within 256 pixels.


  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Eliyahu's Avatar
    Join Date
    Oct 2007
    Location
    Seattle, WA
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: mouse pointer in zone

    as maVado said, you can compare the mouse position to what you want. It is simple, just use compare 2 general values.

    Then type XMouse for where you want the X position and then obviously YMouse for Y position, and compare them to the area they shall be over.

  4. #4
    Clicker Multimedia Fusion 2iOS Export ModuleXNA Export Module
    Asholay's Avatar
    Join Date
    Nov 2008
    Location
    England
    Posts
    360
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: mouse pointer in zone

    Ah perfect, cheers chaps - knew there would be a simple solution.

Similar Threads

  1. object following mouse pointer?
    By flyingpixel in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 21st September 2015, 09:09 PM
  2. Mouse Pointer & Mouse controlled obejct
    By danjo in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 28th April 2012, 12:17 AM
  3. Setting mouse pointer?
    By KLiK-iT in forum Multimedia Fusion 2 - Technical Support
    Replies: 16
    Last Post: 20th January 2012, 11:30 PM
  4. Mouse Pointer
    By Crls in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 17th April 2010, 08:18 PM
  5. Mouse pointer help
    By Dynamite in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 27th February 2007, 08:53 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
  •