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

Thread: Detect mouse click in Firefly

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    Fleetwood's Avatar
    Join Date
    Nov 2011
    Location
    Cape Town, South Africa
    Posts
    9

    Detect mouse click in Firefly

    I just bought Firefly. Since I want to implement very basic 3D elements into my game, it's already proving to be quite useful ( I'm looking forward to see what the updates bring ).

    There is, however one thing that vexes me - how do I make mouse clicks register within the 3D frame?
    I can't use mouse clicks as a condition anymore. Even something as simple as : " on left mouse click, close application ", does not work when the mouse is over the 3D canvas/firefly engine object

    I'm probably missing something basic and feel silly for asking, but is there a simple work-around for this?

    If anyone has an answer, I'd appreciate it.

    Thanks

  2. #2
    Clickteam Clickteam
    Kisguri's Avatar
    Join Date
    Jun 2006
    Location
    Bakersfield, CA
    Posts
    2,802
    Blog Entries
    2
    I was dealing with this issue yesterday. We have a simple frame we are going to add to the examples.MFA in the mean time I will try and post something here for you....

    Capture.JPG


    Clickteam on Twitter - Clickteam on Facebook

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    Fleetwood's Avatar
    Join Date
    Nov 2011
    Location
    Cape Town, South Africa
    Posts
    9
    Thank you for the quick response.
    I managed to get the primitive to stick to the mouse ( when clicking over it ) - I can fill the screen with the primitive in order to detect clicking on the screen.

    However, the primitive will only respond to the mouse click when the application runs without "resize display to fit window size" checked in the window options

  4. #4
    Clickteam Clickteam
    Kisguri's Avatar
    Join Date
    Jun 2006
    Location
    Bakersfield, CA
    Posts
    2,802
    Blog Entries
    2
    one thing to keep in mind, is you need something for the mouse to "Collide" with. I left it out of the pic, but we have a primitive set to plane on that example, with its collisions ticked on in properties.


    Clickteam on Twitter - Clickteam on Facebook

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    Fleetwood's Avatar
    Join Date
    Nov 2011
    Location
    Cape Town, South Africa
    Posts
    9
    I implemented the full screen as shown in your example here

    I've been able to register the click and it works.

    Thank you

  6. #6
    Clickteam Clickteam
    Kisguri's Avatar
    Join Date
    Jun 2006
    Location
    Bakersfield, CA
    Posts
    2,802
    Blog Entries
    2
    np, happy developing!


    Clickteam on Twitter - Clickteam on Facebook

  7. #7
    we are also aware of some mouse clicks / keyboard presses being eaten by firefly, we have stopped firefly eating them in the next patch.


    Clickteam on Twitter - Clickteam on Facebook - Clickteam on Discord

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module

    Join Date
    Jul 2006
    Location
    Tallmadge, Ohio USA
    Posts
    257
    Would someone be so kind as to post an .mfa file with mouse clicks working in Firefly. I'm struggling with this as well..

  9. #9
    mousetest.zip - a primitive plane with collision detection from mouse pick routines with red ball and output text of selected target


    Clickteam on Twitter - Clickteam on Facebook - Clickteam on Discord

  10. #10
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module

    Join Date
    Jul 2006
    Location
    Tallmadge, Ohio USA
    Posts
    257
    Thank you for posting this. I didn't realize collisions had to be enabled for the object AND the floor. This works with the collision radius set to 0, yet to actually "hit" an object they both must have some value in the collision radius. Was confused by that. Also what if the scene did not require a floor? and how to stop the ball from returning to 0,0,0 if the click happens outside of the floor plane?

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Unable to detect mouse click events on older devices (4.0.4 and earlier)
    By AyreGuitar in forum Android Export Module 2.5
    Replies: 7
    Last Post: 4th April 2016, 05:17 PM
  2. Detect mouse click outside play area?
    By J3sseM in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 22nd October 2013, 03:39 PM
  3. detect a mouse click when window is not focused
    By Skeets in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 24th August 2011, 07:29 PM
  4. Mouse click events runs faster when mouse moves
    By chrilley in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 2nd February 2007, 02:54 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
  •