Playmaker Forum
PlayMaker Feedback => Action Requests => Topic started by: bfd on December 06, 2014, 12:22:16 AM
-
The Mouse Pick Event seems incredibly useful but at the moment I'm very limited by the fact that it can only send a 'mouse button down' event (in addition to mouse over, mouse up etc) which defaults to left mouse button.
Would it be possible to extend this action so that I can have separate events fired for left click and right click? Or is there some easy way to accomplish this that I'm missing?
Essentially I'm looking for an real-time strategy game style of mouse interaction where the player left-clicks on an object to select it and right-clicks on an object to attack (or in my case, 'move to')
-
Hi,
Done, you can get it via the Ecosystem browser (https://hutonggames.fogbugz.com/default.asp?W1181) or download it below.
MousePickEvent2 (https://github.com/jeanfabre/PlayMakerCustomActions_U3/raw/70ce3ef1d858163da39586c1609d4c1d512e8dee/Assets/PlayMaker%20Custom%20Actions/Input/MousePickEvent2.cs)
Bye,
Jean
-
I think the 'Mouse Pick Event' is great but couldn't you just change it to maybe 'Input Pick Event' and have a list like in 'Get Key'? that way you could have the functionality of 'Mouse Pick Event' but with any key, mouse button, or joypad button, for the 'mouse down' and 'mouse up' states.
PS. i Only started using Playmaker a couple of days ago, so tell me to shut the hell up if this functionality exists elsewhere (and point me to it) :P
-
:)
By All means, please make requests! This is the way to do it, so don't worry, you can speak your mind here.
This is a good suggestion, and I made the action available on the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181)
KeyBoardPickEvent (https://github.com/jeanfabre/PlayMakerCustomActions_U3/blob/master/Assets/PlayMaker%20Custom%20Actions/Input/KeyboardPickEvent.cs)
Tell me if this what you had in mind. So now instead of mouse down and up this action will react to key down and up while giving you the same functionalities otherwise ( using the mouse current position to match events)
Bye,
Jean
-
Your a total legend! cheers :D
-
:) 8)