playMaker

Author Topic: Action Check Key if still being held down. [SOLVED]  (Read 990 times)

Alec_colin

  • Playmaker Newbie
  • *
  • Posts: 2
Action Check Key if still being held down. [SOLVED]
« on: April 07, 2022, 07:51:07 AM »
So im trying to create an Assult Rifle in my Game but i ran into a Issue/Question Mark. I want to add a Action which checks if the button is still being held down, aka Mouse 0, but im kind of confused as the "Get Key" is ment to check if the key is still being pressed down but im only able to make a Variable not a event. I don't quite understand how Variables Work just yet.

I was already able to add an action which checks the key if its no longer pressed with "Get Key Up".

Any help would be appreciated
Thank you.
« Last Edit: April 07, 2022, 08:08:00 AM by Alec_colin »

Alec_colin

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Action Check Key if still being held down. [SOLVED]
« Reply #1 on: April 07, 2022, 08:11:02 AM »
You only have to add a "Get Key" Action and a "Bool Test".
In the "Get Key" you create in the "Store Result" a Variable to know whether its true or false if the button is still held down.
You then use that Variable in the Bool Test. The only thing you still need to do is add the events on which is true and which is false.
« Last Edit: April 07, 2022, 08:16:35 AM by Alec_colin »