How to write VB code for powerpoint hangman game? - TechRepublic
Question
March 21, 2011 at 08:29 AM
cowgirltj06

How to write VB code for powerpoint hangman game?

by cowgirltj06 . Updated 15 years, 3 months ago

Hello,
I am using powerpoint 07 to create a hangman game. I have already set up the alphabet with triggers so when the correct answer is choosen it shows up on the blank in the phrase. The part I’m having trouble with is setting up VB code so when the wrong answer is choosen, the head appears, then the body, then the legs, then the arms. There are 23 blanks(3words) in the correct answer. I have never written code before, but I thought I may be able to assign all correct letters a 1 and all incorrect letters a 2 then set up the code like
If = 1 then CorrectAnswer
If = 2 then IncorrectAnswer

If IncorrectAnswer = True
then head.visible
Elseif head.visible = True
then body.visible
Elseif body.visisble = True
then rightleg.visible
Elseif…… you get the idea.

What I don’t know is 1. if this will even work, and 2. if i am thinking about this in correct code language? If someone could please help, it would be much appreciated!!

Thanks,

This discussion is locked

All Comments