Wait for key press. How to do a particular key.

I want to know if i can use Wait for key press on a particular key. If anyone knows please and thank you.


Hello only way I can really see doing this (myself) is making a function (lets call it key_press) then in function put

msg ("Press the right key!")
get input {
  if (result = "x") {
    msg ("good job")
  }
  else {
    msg ("no good")
    key_press
  }
}

And now all you have to do is call function when wanted and change "x" to the key wanted or even a phrase, sentence, etc.

Hope it helps.


You might also want to check out the following link too
http://textadventures.co.uk/forum/quest/topic/llccckckresqjnbke8n15a/how-to-wait-for-a-specific-keypress-before-continuing


onimike thank u so much


Log in to post a reply.

Support

Forums