User Tag List

Results 1 to 4 of 4

Thread: Using a mouse, combined with scrolling?

  1. #1
    No Products Registered

    Join Date
    Mar 2009
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Using a mouse, combined with scrolling?

    Hey guys,

    I've got a problem with a game I'm making in TGF2... I guess you will know a way around it.

    Basically, I'm making a very basic point and click type game - where the user can scroll horizontally through the environment.

    The cursor is set to mouse controlled, and the screen is set to position itself at 0,0 from the cursor. This is fine, except It won't register clicks! (for the moment, I have a test to see if the cursor is over an onject AND a key is pressed - but mouse clicks don't register.)

    I've tried making my cursor static and positioning it at xmouse, ymouse - then having the screen do the same - but this makes the scrolling fast and uncontrollable!

    Anybody know what I'm getting wrong?

    Thanks dudes!

  2. #2
    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: Using a mouse, combined with scrolling?

    There's a trick to getting clicks to register if you have an object that's controlled by mouse movement (and I'll be the first to admit that it doesn't make a whole lot of sense) - because TGF considers the mouse to be controlled by a player, you have to use the "Player 1 presses Fire" events to check for mouse clicks, rather than the "User clicks" events, which are for the default Windows mouse cursor. That may be what you're missing when you have a mouse-controlled cursor object.

  3. #3
    No Products Registered

    Join Date
    Mar 2009
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Using a mouse, combined with scrolling?

    Aaaaah.... that... almost makes sense. I would never have guessed it, though!

    Thank you for your help, DavidN!


  4. #4
    No Products Registered

    Join Date
    Nov 2008
    Location
    Michigan!!!
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Using a mouse, combined with scrolling?

    You should probably try this, without the mouse movement stuff. It will make it a LOT easier..

    ALWAYS: set scrolling X to XMouse.

    This makes other clicking features much easier to put in.

Similar Threads

  1. combined objects
    By Bogeyman in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 12th September 2012, 04:17 PM
  2. Mouse Controlled movement not scrolling
    By Chuckles in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 16th November 2007, 07:19 AM
  3. Mouse scrolling example
    By DavidN in forum File Archive
    Replies: 2
    Last Post: 14th February 2007, 09:39 PM
  4. Two Strings Combined?
    By Pxl_Buzzard in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 10th November 2006, 02:12 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
  •