Detect mouse click in Firefly

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • 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

  • 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....

    Please login to see this attachment.

    Please login to see this link.

    Clickteam on Please login to see this link. - Clickteam on Please login to see this link.

  • 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

  • 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.

    Please login to see this link.

    Clickteam on Please login to see this link. - Clickteam on Please login to see this link.

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

    Please login to see this link.

    Clickteam on Please login to see this link. - Clickteam on Please login to see this link. - Clickteam on Please login to see this link.

  • Please login to see this attachment. - a primitive plane with collision detection from mouse pick routines with red ball and output text of selected target

    Please login to see this link.

    Clickteam on Please login to see this link. - Clickteam on Please login to see this link. - Clickteam on Please login to see this link.

  • 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?

  • if the floor wasnt there then the mouse wouldnt hit anything - so it would return 0,0,0 ?

    the ball is just a visual aid to show you where you hit how and when you move it would be upto you a simple if mousecolX = 0 then ignore would work, but depends how your using it in your game/program

    Please login to see this link.

    Clickteam on Please login to see this link. - Clickteam on Please login to see this link. - Clickteam on Please login to see this link.

  • Does this Encounter problems if clickable object overlap each over?

    I.e If I wanted to click a red ball, that also overlaps a clickable green ball... would it click both, and if so, would there be anyway of stopping this?

    Awesome Product by the way! Loving it.

  • it would click on whatever the first one it hit was, never both, if you wanted to click the one that was behind - you would need to turn collision off on the front one - do a check (which will hit the one behind) then turn collision back on again.

    Please login to see this link.

    Clickteam on Please login to see this link. - Clickteam on Please login to see this link. - Clickteam on Please login to see this link.

  • it would click on whatever the first one it hit was, never both, if you wanted to click the one that was behind - you would need to turn collision off on the front one - do a check (which will hit the one behind) then turn collision back on again.

    That's really good news!... Thank you for the Speedy Reply!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!