Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: auditoryscenes 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!
-
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 (http://www.hutonggames.com/tutorials_game_design_with_playmaker.php) and on youtube to get familiar with playmaker. i would suggest to follow some of these tutorials :)