Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: gpex on November 05, 2016, 01:55:35 PM

Title: [Unity 5.4.1] Get Key Down help
Post by: gpex on November 05, 2016, 01:55:35 PM
Hello community!
I'm making a prototype where a certain text should be displayed in the GUI whenever the player presses some buttons. But I need it to happen when the player presses EXCLUSIVELY those buttons and nothing else... as far as I explored the actions, I couldn't find a way to make it happen.

To be clear: if user presses "A", text "Hello" appears.
If user presses 3-4 buttons including "A", nothing should happen.
Also I'd like to know if there is a way to make combinations (Alt+A -> X happens; Shift+A -> Y happens; and so on)

Thanks for reading, I hope I can find some help here!
Title: Re: [Unity 5.4.1] Get Key Down help
Post by: djaydino on November 05, 2016, 11:59:52 PM
Hi,
You can use the "get key" and store the value.
Turn on every frame
Then you can use the action 'bool all true'
to check if both are pressed
Also turn on every frame,
and place all in the same state