playMaker

Author Topic: Checking Input Status and Trigger Animation of Character  (Read 748 times)

auditoryscenes

  • Playmaker Newbie
  • *
  • Posts: 2
Checking Input Status and Trigger Animation of Character
« on: February 21, 2019, 07:01:24 AM »
Hi all,

I think this would be simple, however, I have been a bit stuck in thinking how to work on checking key status.

Here is the thing I would like to do:

I have a character which I set a dying animation with the character in already. I would like to check if a key is pressed and if not, it will trigger the dying animation and the game will end and if the key is pressed, it will show a in-game message.

I would be great that someone in the forum can give me some hints or actions which I can have a look.

Thank you very much in advance!


 


djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Checking Input Status and Trigger Animation of Character
« Reply #1 on: February 21, 2019, 10:03:42 AM »
Hi.
To check if key is pressed you can use one of the Get key.. actions.

Then you could use play animation or if you use animator you could use Set Animator Trigger or bool

Then if you have a ui text you can use ui text set text to set the message.

There are many tutorials on the tutorial page and on youtube to get familiar with playmaker. i would suggest to follow some of these tutorials :)