1 Reply Latest reply on Jun 11, 2006 3:47 PM by Newsgroup_User

    Hang man game help

    La Bestia
      Ok I am pretty new to Director so please excuse if this makes no sense. Is there a way you guys can suggest that

      if keypressed(letters of the alphabet) then

      sprite(1).visible=true

      end if

      I know that there is keyboard codes for this and I know them. But, basically my question is: Is there a way I can have Director check for the multiple letters in one statement?

      The following is not Lingo
      If they press either A,B,C,D then make sprite(11).visible=true (which would be the head)

      Thanks guys,
      -Proff
        • 1. Re: Hang man game help
          Level 7
          On Sun, 11 Jun 2006 19:12:14 GMT, La Bestia posted in
          macromedia.director.lingo:

          > I know that there is keyboard codes for this and I know them. But
          > basically my question is: Is there a way I can have Director check for
          > the multiple letters in one statement?
          >
          > The following is not Lingo
          > If they press either A,B,C,D then make sprite(11).visible=true (which
          > would be the head)

          case the key of
          "A","B","C","D": sprite(11).visible=true
          "E","F": alert ("You pressed" &&the key)
          otherwise
          sprite(11).visible=false
          end case



          --
          Mark A. Boyd
          Keep-On-Learnin' :)