Simple Trivia game

I am attempting to design a very simple trivia game. It needs to include if and for statements. Can anyone link me to a place they know of that shows me how?

pastramigod wrote:
More of how to incorporate it into a trivia game.There's no specific instructions for this that I know of. You're just going to have to play and experiment with your code. In fact, I recommend that you play and experiment with your code, because even if you don't get a decent game running, you are sure to learn a lot. Please come back with your code samples if you run into problems.

Similar Messages

  • Trivia Game: Error while testing CS3 app in CS4

    I have been attempting to test an exercise file for a Trivia
    Game written in AS3 using the Flash CS3 IDE.
    Unfotunately I have been receiving two errors each time its
    run while using Flash Professional CS4.:
    <ol>
    <li><strong> 1023: Incompatible override.
    </strong></li>
    <li><strong> 1021: Duplicate function
    definition.</strong></li>
    </ol>
    each of these errors occur on the same line:
    <ul>
    <li> <strong>public function showScore()
    {</strong></li>
    </ul>
    Can anyone help? The code and every

    It appears that showScore is some sort of reserved word in
    CS4 or one of the CS4 libraries. Just change every showScore in the
    code to something else like showGameScore and it should
    work.

  • Need help with a simple basketball game.

    Hi im new here and I need help with making this simple basketball game.
    Im trying to recreate this game from this video. Im not sure if he is using as2 or as3
    Or if anyone could help me make a game like this or direct me to a link on how to do it It would be greatly appreciated.

    If you couldn't tell whether it is AS2 or AS3, it is doubtful you can turn it from AS2 into AS3, at least not until you learn both languages.  There is no tool made that does it for you.

  • Trivia game that does NOT require data

    looking for a trivia game that does not require an Internet connection. We are going camping and like to play a trivia game around the camp fire, but there is no cell service or data or wifi. We have used Mr Trivia for the last couple years but have ran out of new questions. Looking for something simular in function. Most of what I've tryed does not funtion without running data.
    ipad, iphone or pod (mutiple generations)
    thanks

    dalewren wrote:
    Are there any carriers that allow this?
    Not that I'm aware of. In fact, many carriers, if they detect an iPhone on their network without a data plan, will either bill you for such or cancel your service.

  • Scoring in a trivia game

    I'm putting together a flash trivia game. I want the score to
    be revealed only after all the questions have been answered.
    Something like this:
    1-5 right, try again
    10+ right, good job
    15+ you're getting better
    20+ you're a master
    So, I need some script to remember the score, and keep it
    hidden, and count the right answers and reveal them at the end.
    Can someone help me with this?
    I'm kinda new to action scripting

    To be able to play existing sounds fragments and play generated tones you can use the Mobile Media API (MMAPI). Check whether your target JVM implementation supports MMAPI.
    To be able to play a certain tone you could use something like this:
    (check the API specification of the 'javax.microedition.media' package)
    Manager.playTone(int note, int duration, int volume)
    That should do the trick.
    Jasper

  • Music trivia game error message

    i'm having problems accessing my music trivia game. it worked when i got the ipod last week, but now that i've used it a bit, whenever i go to play my music trivia, "no songs found, error" appears on my screen. does anyone know why? is there some way i can fix it? i have only deleted a couple of songs and added a whole album (18 songs) but that's the extent of the changes i've made with the nano. any help would be appreciated
    thanks
    PC   Windows XP   Sony

    If I reset the iPod, that means all the songs will be deleted too, right? I'm still a little unclear with all these 5 R's thrown into the mix every which way!
    Thanks

  • Basic Trivia Game

    I am looking to make a trivia game as a special feature on my dvd for my kids...1 trivia game per each kid 10 questions each...After each question a track is going to with them saying YAY or NO and then it proceeds to the next question....The questions do not need to be in random order....infact id prefer they are not...also id like at the end of the quiz for a menu to say how many they got right out of how many....i have developed a way to do this however it involves using over a hundred menu's and tracks with different end jumps...i do not know anyhting about scripting but i am willing to use it if someone lays it out for me....im using DVDSP4.....and ideas?

    Do a quick search using the "more options" and search last year, just put the word "trivia" in the DVD SP forum and there are many threads. I think some of them had some details and point to projects files

  • Simple MP games for OS X and Windows

    hello all,
    I am having trouble finding simple multiplayer games that have versions both for OS X and Windows XP.
    Have PC laptop and ibook, both with WiFi, and would like to play games with my girlfriend. That's why simple games as she doesnt like those Ghost Recon stuff etc. but freeware/shareware ones.
    Has anyone managed to find such games?
    Thnx
    Tom

    Hi, Thomas.
    When looking for new applications, including games, I recommend searching MacUpdate or Version Tracker. The user-submitted reviews accompanying the listings can be helpful in sorting the wheat from the chaff.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • Super Simple Flash Game Tutorials?

    I'm looking for some super simple flash game tutorials that students can complete in about an hour.  I don't want a lot of actionscript, but some is necessary and that's fine.  Drop any links you may know of or any book titles.  I don't mind buying a book if it is what I'm looking for.  Flash CS5

    This is an old technique but it works great using php:
    http://www.flashkit.com/tutorials/Games/High-sco-Glen_Rho-657/index.php

  • Need a little help with a trivia game

    Hey guys I was wondering if I could get some help. I'm taking a class at school for java programming and its my first class. And I have to do a final assignment, which is to make a java trivia game. I have all the parts coded already pretty sure. Now be forewarned that I'm not "that" great at programming.
    But the part that I'm stuck on and cant really get any help on is this: For the game I need to have a file with all the questions and answers, which is created already and works. The file writer has the question, choice 1, choice 2, choice 3, choice 4 and the answer written to it, in that order. We needed to implement a GUI and I coded that as a message label on top where the question will go, in the middle 4 radio buttons where the choices to the answer will go and on the bottom a next question, ok and quit button.
    My question is this: How do I pull the information from the file that was written to appear in the GUI, such as the question and the choices for the answers for the question? ANY and ALL help would be appreciated

    Read the information using a BufferedReader wrapped around a FileReader. Change your GUI using setText on the component you want to display the text.
    Edit: An example that does both things
    import java.io.*;
    import javax.swing.*;
    public class FileAndSwing {
       public static void main(String[] args) throws Exception {
          BufferedReader reader = new BufferedReader(
                new FileReader("FileAndSwing.java"));
          StringBuilder builder = new StringBuilder();
          for ( String line = null; (line = reader.readLine()) != null; ) {
             builder.append(line).append("\n");
          JFrame frame = new JFrame("FileAndSwing.java");
          frame.setSize(500, 500);
          JTextArea field = new JTextArea();
          frame.add(field);
          field.setText(builder.toString());
          frame.setVisible(true);
    }This is also kind of a Quine :-).
    Edited by: endasil on 15-Dec-2009 4:00 PM

  • Creating a very simple dice game - help needed

    I have been assigned to create a simple dice game with the result like below :
    Welcome to the Dice game.
    Please answer the following questions with 2-16 characters :
    Whats the name of player 1? a
    wrong format
    Vad heter spelare 1? Duffy
    Vad heter spelare 2? John
    Duffy throws: 6
    John throws: 4
    I have come to the "Duffy throws 6" part and have absolutly no idea how i should continue. I have tried to look up the codes in "API Specification" but found no codes / names with "dice" :)

    I have come to the "Duffy throws 6" part and have
    absolutly no idea how i should continue.How on earth should it continue??? I can't mind read unfortunately.

  • Simple Memory Game

    Hi
    I want to make a really simple Flash memory game. There is no
    need for score, level, time limit or stuff like that. Just a simple
    memory game with 16 cards what you turn and look for a match. Any
    one who know a good tutorial with fla source code?
    I have looked at this tutorial but i can't get this thing to
    work
    http://www.bleacheatingfreaks.com/science/memory/
    Any help to get me started is appreciated

    I've got a Flash memory version here: www.blurredgames.com
    If you like I'll send you the FLA file, but I have no
    tutorial for it... I
    have a Director based tutorial in my last Director book, but
    that's Lingo.
    If you'd like the .fla file let me know and I'll send it
    over. At the very
    least you could simply modify the assets and use it...
    there's even a timer
    and a high-score table...
    Dave -
    Head Developer
    www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Random numbers to make simple bingo game

    Hi folks.
    I am making a simple Bingo game in Director.
    1. generate a random number up to 75; Number=random(75)
    2. check if this number is on a list
    3. if not the number is valid and code executed to display
    the "bingo ball"
    4. add the number to the list
    and repeat.
    Is this valid? Are there problems with this approach, ie. as
    the numbers are called, the random number generated has more
    likelihood of being on the list already so will speed take a hit?
    OR is there another way to do this?
    Thanks in advance

    The issue with your approach will be evident when you've
    removed a bunch of numbers already. What you will see is that the
    number of times you will have to repeat step 2 will grow each time
    you draw a bing ball as the number of balls drawn increases. How I
    would approach it is in the reverse...
    1. create your list of numbers from 1 to 75, procedurally at
    the beginning:
    bingoList = []
    repeat witih j = 1 to 75
    bingoList.add(j)
    end repeat
    -- that gives us a list containing the numbers from 1 to 75.
    2. Now, all you have to do is generate a random number based
    off the number of items in the list and then remove that item from
    the list:
    listCount = bingoList.count
    bingoBallPosition = random(listCount)
    -- get the bingo ball value at the position in the list:
    bingoBall = bingoList[bingoBallPosition]
    -- remove that ball number from the list
    bingoList.deleteAt(bingoBallPosition)
    You will have to do other things such as setting the
    bingoList as a global or property variable depending on how you
    code your project....
    you may want to se this up in a moviescript if you're a
    novice programmer so you can call the handlers from anywhere in
    your project... so you'd probably want to create a newGame handler
    that would set up your list (and other stuff)....
    -- moviescript
    global bingoList, bingoBall
    on newGame
    bingoList = []
    repeat witih j = 1 to 75
    bingoList.add(j)
    end repeat
    end newGame
    on getBingoBall
    listCount = bingoList.count
    bingoBallPosition = random(listCount)
    -- get the bingo ball value at the position in the list:
    bingoBall = bingoList[bingoBallPosition]
    -- remove that ball number from the list
    bingoList.deleteAt(bingoBall)
    -- do other stuff here such as display the bingo ball
    end getBingoBall

  • Where to start with a simple platform game?

    What resources should I look at to learn how to create a very simple platform game, with a charactor who can simply jump on platforms and avoid enemies to reach the end of the level?
    I have made games like this with other languages but never flash.
    Thanks.

    I am also interested in this answer but in my case from the aspect of Silverlight-only developer with no flash experience (I know that sucks
    Thanks,
    Nikola

  • Trivia game app with real money

    hi,
    i`m working on a trivia game app that involves a tournament with money prizes.
    i haven`t been able to understand what`s allowed to do under the apple guidlines concerning possible means of payment for credits to the tournament.
    1 - can i use In App Purchase to allow the players to buy credits for the tournament where they can win money?
    2 - can i have a native page allowing them to buy credits to the tournament using credit card or paypal? if not can i open a browser asking them for their credit card\paypal?
    Thanks!
    Ido

    Because the game is only 99 cents? It shouldn't matter, itunes is getting money either way, I already paid for the card and redeemed it to my account. How ridiculous.

Maybe you are looking for