playMaker

Author Topic: [Unity 5.4.1] Get Key Down help  (Read 1486 times)

gpex

  • Playmaker Newbie
  • *
  • Posts: 1
[Unity 5.4.1] Get Key Down help
« 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!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: [Unity 5.4.1] Get Key Down help
« Reply #1 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