Ruby isKeyPressed method

For general discussion related FlowStone
Post Reply
arend
Posts: 10
Joined: Thu Sep 15, 2011 5:52 pm

Ruby isKeyPressed method

Post by arend »

Hello,
Is possible to detect the SPACE key using the isKeyPressed method ?
tks
User avatar
support
Posts: 151
Joined: Fri Sep 07, 2012 2:10 pm

Re: Ruby isKeyPressed method

Post by support »

Space - is character 32 and in the Ruby isKeyPressed function it needs to be a string:

So SPACE = '32' (not 32).

spacebar clip.png
spacebar clip.png (22.59 KiB) Viewed 10605 times


For other letters is easier just use the letter eg. 'q'
Attachments
spacebar.fsm
(357 Bytes) Downloaded 1012 times
arend
Posts: 10
Joined: Thu Sep 15, 2011 5:52 pm

Re: Ruby isKeyPressed method

Post by arend »

Thank you !
Post Reply