Forum Discussion
Hangman Game
Hi all
I've been working on a hangman game in Storyline 2 where you have to guess the letters of a hidden word. You are allowed 10 errors before the stick man is hanged (lovely!) and the game is lost.
I've made this version using a variable for each letter of the alphabet to either reveal the correct letter chosen or deduct a point from the 10 goes errors allowed (linked to the graphics of the man), but it seems quite an inefficient way to do this. Can anyone think of a more efficient way to create this mechanism?
Published version:
https://dl.dropboxusercontent.com/u/7817836/HANGMANGAME3/story.html
Thanks
Gavin
25 Replies
Nicely done, Gavin! I can't wait to dive into your source file. Thank you so much for sharing!
- Gavin-InnesCommunity Member
It's very much a quick prototype (hence the typo!). There is at least one variable around the scoring that could be removed for efficiency, but it is still quite a complex interaction for basically a one question quiz. It will be interesting to see if there are other ways to approach it.
Gavin
We don't worry about typos when we're sharing ideas, Gavin! The concept and presentation are what counts. I'm doing a workshop this morning but I'll take a look at your file this afternoon.
- DavidTaitSuper Hero
Nice example Gavin. Here's one that I built: Hangman
I'll attempt to explain my workings below:
- I had a PNG for each missing letter
- The PNG had a state for each letter of the alphabet
- When you click on the options/letters they either change the state of the blank to the relevant letter or they deduct a life via a variable
- Once an option has been selected it is disabled and the correct/incorrect audio is played.
- Gavin-InnesCommunity Member
Hi David,
I like your graphics and sounds :) Is your one easy to amend for different projects? I'd like to get to the stage that this can be inserted into different project without being a major headache.
Gavin
- DavidTaitSuper Hero
Yeah I'd say it would be quite easy to drop in to any project, I'd imagine yours would be too from looking at your file.
- Gavin-InnesCommunity Member
Thanks for the feedback. Having seen your game, I might make some nice
graphics and sounds for my one and use it in a project :)Have you made any other games/puzzles in Storyline?
Gavin
- DavidTaitSuper Hero
You've already done the hard part and rigged up all of the code so updating the graphics and adding sound effects should be the fun bit!
We have quite a few games/puzzles that we've developed in Storyline, I've extracted a couple of the popular ones from one of our demos, they are the Line connector activity and the Crossword.
- Gavin-InnesCommunity Member
Hi David
Nice games :) I like the crossword in particular! It's been a long time
since I've managed to complete one ;-) Thanks for sharing. Quite
inspiring.Gavin
- DavidTaitSuper Hero
Thanks Gavin, I'm glad you like them.
- DavidTaitSuper Hero
You're right Reece, keeping track of what all the triggers are doing is the hard part!
- ChrisWallCommunity Member
I might have a text variable for each letter in the correct answer and, obviously, a text variable for the learner's guess.
Then I'd use a series of triggers to compare the learner's guess to each of the hidden letters in the answer.
I'd use a numeric variable to keep track of how many wrong guesses had been made, and each time the number in that variable increments, I'd use a trigger to change the state of one element of the stick man figure from hidden to normal.
- ChrisRoetzerCommunity Member
Games are a great way to have some fun especially as a recall/knowledge check. Rather than simply guessing letters (sort of a wheel of fortune style approach), we've used a power point version of hangman asking questions of a participant - if they answer the question correctly, they get a letter, wrong answers build the hangman. I wonder if this could be adapted into Storyline using the quizzing slides?
- Mohammad-HassamCommunity Member
Nice Design. There are some changes need to be done in the layout, but few touches can make a lot better.
Related Content
- 10 months ago
- 10 months ago