View Full Version : Jeopardy Flash Game
Deep Soul
January 21st, 2004, 03:13 AM
Hello all!
I'm still a newbie but with each project I hope to learn that much more.
I'd like to create an interactive jeopardy board similar to the TV show (i.e. someone picks 'Games' for $100, a button is pressed then a closeup of the question is displayed)
I plan on projecting this interactive board on a projector while I stand in front of the room acting as the host.
What I guess I need:
- a way to dynamically load the questions that are associated to the various columns
- keep track of the questions already played (probably by simply changing the button to a different color)
- Obviously a way to keep score with a scoreboard cutscene that I can call up at a press of a button.
What would be some of the better ways to get this underway. Any particular scripting anyone would suggest? All help definitely appreciated!
Marz
January 21st, 2004, 03:56 AM
Well... I mean.. It wouldn't particularly be too hard. Just make each question thing a generally accesible button.
When you move the mouse over the button.. Have a hover state of a glowing.. And if you hit the button... Then just do a zooming effect to the actually monitor screen and then you have the question fade in... Not too difficult... Then queue the music and open up a text box for someone to place their answer.. Or offer it as a multiple choice.. Unless the room is going to be set up to answer you from there.. In which cause just have it where you can click something else and do it that way..
There are muliple different ways you can do this so.. :D
SeiferTim
January 21st, 2004, 10:26 AM
-And if you want to make the catagories/answers random, you can make a couple of Text (.txt) files and pull the info from them randomly. I think there is a tutorial on Kirupa's main section, if I'm not mistaken...
jp182
April 20th, 2005, 12:14 PM
hey, did you ever get this working??
squishy
April 20th, 2005, 12:19 PM
Math.Random(); have random questions and make it so the same question can't be asked twice :D
muchitsujo1
December 4th, 2006, 10:16 PM
Hmmm... I just finished a Jeopardy game, only difference being that mine doesn't have the score card information. As previously mentioned, there is a function to read variables from text files, but I find that Shared Objects work better as you can save multiple arrays (and everything else short of the kitchen sink) in them. It's not that hard to make a system that can dynamically create questions, apply them to an array, then save them to the Shared Object. As to the game itself, I know that there's a power point Jeopardy running around on the internet somewhere that has the board on it (if you want to do this DIY style, I can always send you the jpg). From there you just put a blue button (same shade as the monitor) over each screen and tell it to become invisible upon entering the slide (instanceName.blendMode = 11)(blendMode of 1 is visible), then have it become visible again after the block has been pressed (making the monitor look blank!). As for Final Jeopardy, you can use the setInterval() function to make a timer (Note: I had trouble finding this annoying detail: to stop the interval, use the clearInterval() function).
If you're not interested in all the fun that goes into creating this monster, I can send you the compiled version of mine (I'm a couple days from finishing it, not quite ready to put a link to it up though)(I can take care of adding in the scoring function, if you want, or I can send you the source code although you'd have to re-map out the entire library as the paths would have changed - that's after we figure out how to send a LOT of files...).
However, to add in the score feature:
Keep in mind that this is experemental, I don't have flash on my current computer (nor the time) to make sure this works, but it will start you along the right path.
required elements:
- 2 variables to store scores, another boolean to tell if the score card is shown or not
- 2 text fields
- 2 buttons
- a big rectangle (of some color besides blue!, if you're using a projector then purple would most likely look best)
- I'm running with the assumption that this is two teams, add on text fields and variables as necessary
1: create a variable called activeAmount (some variable that is set a number depending on which screen is pressed) (do this if you want automatic scoring, athough it gets a little complicated adding in a feature to skip the incrementing if the person gets the question wrong).
2: make a new layer (highest level, obviously) and create a movie clip in the frame above the field. In this movie clip, draw a large rectangle that will cover most of the field, but will leave about equal spacing on all sides (ie: subrract 80+/- from the field width and 50 from the field height, make these the rectangle width and height, then center it on the screen). In the clip itself, add in the variables t1Score and t2Score, giving them an initial value of 0.
3: in this rectangle create a static text field that says "Team One:" and another that says "Team 2:" (I advise the text to be yellow, as it stands out well). Also create two dynamic text fields (both need to be selectable, having them with the text border is a nice plus too!), one getting the instance name "t1Display", the other being "t2Display". Then create a button at the bottom of the rectangle, give it the instance name "registerScores". I'll leave the sizing and layout of these elements up to you.
4: click on the current keyframe in the layers panel and input the following code:
t1Display.text = t1Score;
t2Display.text = t2Score;5: click on the registerScores button and input the code:
on(release){
// will apply changes made on these text fields into the corrosponding variables:
t1Score = t1Display.text;
t2Score = t2Display.text;
}(I'm pretty sure that this script and the script from step 4 are possible, if it doesn't work then make t1Score and t2Score into _root.t1Score and _root.t2Score respectively, then make the change to each time the variable is used)
6: exit the movie clip and then place it in the center of the frame, give it the instance name scoreCard.
***refer to the note on the bottom before making flaming me about how to make the score card dissapear***
7: click on the keyframe for the frame and input:
// move the movie clip off the field
scoreCard.blendMode = 11;8: create a button on the bottom left corner (someplace discreet) and then click on it, input this code (the use of Object):
on(release){
loc = scoreCard._x;
if(scoreCardActive){
scoreCard._x = loc + Stage.width;
scoreCardActive = false;
} else {
scoreCard._x = loc - Stage.width;
scoreCardActive = true;
}
}That's the fancy way of doing it (although you can get even fancier by playing with the 'onRollOver', 'onRollOut' and the blurFilter options), where the score card over-lays the field. If you're feeling lazy, then just make a new frame with the same score variables and have the buttons register the variables (in the case of registerScores) and then just take you to and from that frame.
*** I think that having the movie clip move OFF the board is better than simply making it invisible (even after going through the trouble of disabling the buttons, text fields, and setting the blendMode, that inactive+invisible button is still blocking part of a screen below it that won't be able to be clicked on!)
Note: Wow, I just realized that this thread was posted in January of 2004... I hope that you managed to find a working method sometime before this!!!
bombsledder
December 7th, 2006, 05:22 PM
04-20-2005, 04:19 PM
your only about a year late...
Aroberts3
December 11th, 2006, 06:26 PM
Hey, I am a newbie and I would love to see the Jeopardy game. I am trying to learn by taking games apart. If your willing please contact me!
Thanks
bombsledder
December 11th, 2006, 07:15 PM
again this thread is old...
muchitsujo1
December 11th, 2006, 07:27 PM
again this thread is old...
Heh, and since when did that stop anyone who was trying to figure something out?
bombsledder
December 11th, 2006, 08:34 PM
Heh, and since when did that stop anyone who was trying to figure something out?
well most likely the guy with 6 posts that hasnt been on these forums in a year?
im sure if you do some searching on google you could find some tutorials and put together a jeaporday game for learning and come back here and we will help you out anytime
hoganj
February 6th, 2008, 02:33 PM
LIke the user above mentioned I"m googling looking for jeopardy support for flash. I have a nice game and the .fla file. But, I"m having a heck of time trying to modify it.
I'm an average user of Flash -- but, definitely no expert.
ANyone willing to let me mail them the .fla file and take a look at it and give me input on how to modify the values?
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.