I need help ending a game in Captivate

I've created a game where you have ten options. five are wrong, five are correct. after you've gotten five either right (or wrong) i want to either advance the slide or say something. I want it to do something so you know the game is over and you won or lost.
Is there anyway to do this?
In the game if you get a correct answer you get an apple. after you get five i want to say Great! or advance the slide or both. If you get them wrong i want to say you lose and advance the slide. Any suggestions?
I need to know how to end this game.

Oh, only simple, no advanced actions!
You'll need advanced actions, conditional with two decisions. Since you post in the advanced forum, I suppose this is not a problem?
First decision will be a mimicked standard action, because it has to be executed always. I will label it 'Always'
Decision Always
   IF 1 is equal to 1
      Show Imagex                                           the image you want to show
      Expression v_count = v_count + 1          incrementing the variable that is counting
       Hide Click Box_x                                      the click box itself, so that user cannot choose that answer again
Decision Checkit
   IF v_count is equal to 5
      Show....                                                so now I need to know what you want to do when 5 apples are there?
Lilybiri

Similar Messages

  • Guys need help is regarding games. I want to install games like commandos, gta vice city, counter strike etc I mean action games in which we do levels, like games in playsatation and xbox ?

    Guys need help is regarding games. I want to install games like commandos, gta vice city, counter strike etc I mean action games in which we do levels, like games in playsatation and xbox ?

    You can only install games that are in the iTunes app store on your computer and the App Store app directly on the iPad - if there are games like those that you mention in your country's store then you can buy and install them. Have you had a look in your country's store ?

  • Need Help On Apple Game Center Using Iphone 5 "Not Able To Login"

    Iam a new user, 1st click on Game Center it ask to key in my apple ID password. After key In it shows "This apple ID has not yet been used in Game Center. Tap continue to set up your account. Then key in the origin place and birth date and it shows the same again and again. NEED HELP !!!
    Any Solution !!
    Thanks.

    I had this same issue and was able to get in after I changed my Safari privacy settings for accepting cookies from Never to Only visited and then trying to login again.

  • Need help in a game design.Cirles,lines intersections

    Hello,
    Im trying to create a board game (the go game) but i have problems with the design. Till now i have design a 19 * 19 table and what i want is when i click with the mouse on this table to display circles, but i want them exactly on the intersection. With my program i get circles everywhere i click and not on the intersection of the line.
    So if anyone can help me,i would like to tell me, how can i place the circle exactly on the intersection? Also i would like to eliminate the clicks just on the table and not outside of it.
    Please help if anyone knows, im not that expert in java
    My code is this till now.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class goGame extends JFrame {
    private int x1Value , y1Value ;
    boolean isWhitesTurn = true,first = true;
    public goGame()
    super( "Go game" );
    Color redbrown = new Color (75,17,17);
    setBackground(redbrown);
    addMouseListener(
    // anonymous inner class
    new MouseAdapter() {
    // store drag coordinates and repaint
    public void mouseClicked( MouseEvent event )
    x1Value = event.getX();
    y1Value = event.getY();
    repaint();
    } // end anonymous inner class
    ); // end call to addMouseMotionListener
    setSize( 700,550 );
    setVisible(true);
    public void paint( Graphics g )
    Graphics2D graphics2D = (Graphics2D ) g;
    Color redbrown = new Color (75,17,17);
    g.setColor(redbrown);
    Color lightbrown = new Color (192,148,119);
    g.setColor(lightbrown);
    if (first) {
    //paint yellow the big rectangle
    graphics2D.setPaint(new GradientPaint (600,100, Color.yellow,100, 10,Color.red,true));
    graphics2D.fillRect(60,60,450,450);
    graphics2D.setPaint(Color.black);
    graphics2D.setStroke(new BasicStroke(3.0f));
    //draw rows
    int y=60;
    for (int n=0; n<=18 ; n++)
    g.drawLine(60,y,510,y );
    y= y + 25;
    //draw columns
    int x = 60;
    for (int n=0; n<=18 ; n++)
    g.drawLine(x,510,x,60);
    x = x + 25;
    g.setColor(Color.green) ;
    //draw the 1st 3 vertical dots
    int z = 133;
    for (int n=0; n<=2; n++)
    g.fillOval(133,z,5,5);
    z = z + 150;
    //draw the 2 vertical dots of the 1st row-dot , the 1 already exists
    int w = 283;
    for (int n =0; n<=1; n++)
    g.fillOval(w,133,5,5);
    w = w + 150;
    //draw the 2 vertical dots of the 2nd row-dot
    int t = 283;
    for (int n=0; n<=2; n++)
    g.fillOval(283,t,5,5);
    t = t + 150;
    //draw the last dots
    g.fillOval(433,283,5,5);
    g.fillOval(433,433,5,5);
    first = false;
    if (isWhitesTurn) g.setColor(Color.white);
    else g.setColor(Color.black);
    g.fillOval( x1Value, y1Value,20,20 );
    isWhitesTurn = !isWhitesTurn ;
    // execute application
    public static void main( String args[] )
    goGame application = new goGame();
    application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }

    This will capture vertical and horizontal
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    public class GoGame extends JFrame
    public GoGame()
         getContentPane().setLayout(null);
         setBounds(10,10,510,520);
         getContentPane().add(new TheTable());
         setVisible(true);
    public class TheTable extends JPanel
         int[][]points  = new int[19][19];
         boolean black  = true;
    public TheTable()
         setBounds(20,20,453,453);
         addMouseListener(new MouseAdapter()
              public void mouseReleased(MouseEvent m)
                   Point p = clickOnIntersection(m.getPoint());
                   if (p != null && points[p.x/25][p.y/25] == 0)
                        int x = p.x/25;
                        int y = p.y/25;
                        if (black)
                             points[x][y] = 1;
                             black = false;
                        else
                             points[x][y] = 2;
                             black = true;
                        capture(x,y);
                        repaint();
    private Point clickOnIntersection(Point p)
         Rectangle rh = new Rectangle(0,0,getWidth(),4);
         Rectangle rv = new Rectangle(0,0,4,getHeight());
         for (int h=0; h < 19; h++)
              rh.setLocation(0,h*25-1);
              if (rh.contains(p))
                   for (int v=0; v < 19; v++)
                        rv.setLocation(v*25-1,0);
                        if (rv.contains(p)) return(new Point(v*25+1,h*25+1));
         return(null);
    private void capture(int x, int y)
         onTheY(x,y,points[x][y]);
         onTheX(x,y,points[x][y]);
    private void onTheY(int x, int y, int col)
         for (int j=x-1; j > -1; j--)
              if (points[j][y] == 0) break;
              if (points[j][y] == col)
                   outOnY(j,x,y);
                   break;
         for (int j=x+1; j < 19; j++)
              if (points[j][y] == 0) break;
              if (points[j][y] == col)
                   outOnY(x,j,y);
                   break;
    private void onTheX(int x, int y, int col)
         for (int j=y-1; j > -1; j--)
              if (points[x][j] == 0) break;
              if (points[x][j] == col)
                   outOnX(j,y,x);
                   break;
         for (int j=y+1; j < 19; j++)
              if (points[x][j] == 0) break;
              if (points[x][j] == col)
                   outOnX(y,j,x);
                    break;
    private void outOnY(int f, int t, int y)
         for (f=f+1; f < t; f++) points[f][y] = 0;
    private void outOnX(int f, int t, int x)
         for (f=f+1; f < t; f++) points[x][f] = 0;
    public void paintComponent(Graphics g)
         super.paintComponent(g);
         Graphics2D g2 = (Graphics2D)g;
         g2.setPaint(new GradientPaint(getWidth(),getHeight(),Color.yellow,0,0,Color.red,true));
         g2.fillRect(0,0,getWidth(),getHeight());
         g2.setColor(Color.black);
         for (int n=0; n < 19; n++)
              g2.fillRect(0,n*25,getWidth(),3);
              g2.fillRect(n*25,0,3,getHeight());
         g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);          
         g2.setColor(Color.green) ;
         for (int n=0; n < 3; n++)
              g2.fillOval(25*3-1,n*150+74,5,5);
              g2.fillOval(25*9-1,n*150+74,5,5);
              g2.fillOval(25*15-1,n*150+74,5,5);
         for (int x=0; x < 19; x++)
              for (int y=0; y < 19; y++)
                   if (points[x][y] != 0)
                        if (points[x][y] == 1) g.setColor(Color.black);     
                        if (points[x][y] == 2) g.setColor(Color.white);     
                        g2.fillOval(x*25-9,y*25-9,20,20);
    public static void main(String[] args)
         GoGame game = new GoGame();
         game.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }Noah

  • I need help with a game called "sticks"...go figure(!)

    Help! I have just started using Java, and already I need to create a simple game, but I am having problems already.
    The game is designed for 2 player with the one human player and the computer. Players alternatively take sticks from a pile, the player taking the last stick loses.
    Any Ideas?
    Many Thanks...
    Dr. K

    If I take a stick and then smash the computer to pieces with it, do I win???

  • Need help with a game..

    I was wondering if anyone can help me out with a little problem.
    Little info about the code:
    I am creating a game, where a player has to answer a set of math questions with answers that are only
    in whole numbers. If you look at method: showQuestion() I have used a for loop show the question on a
    label. There are no compile errors. So i assume, the problem is related to exception handling or something
    the problem:
    if you look at the last method actionPerformed(ActionEvent e), in there when you click the nextQ button
    i get paragraphs exception errors, or so i think there exceptions, im new to programming so tend to get
    jumbled now and again.
    extra info:
    There is another class called Questions, too long to paste here, but in that class i have defined
    the questions and corresponding answers in arrays as such:
    String[] Questions = new String[50];
    int [] Answers = new int[50]
         Question[0] = "What is 2 x 8? ";
         Answer[0] = 16;
         etc etc for the entire 50 questions. so you get my idea here.
    again if you look at showQuestion() whatever question is displayed its answer is worked out using the
    index i.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Game extends Questions implements ActionListener
        /** Global Variables Declared */
        /** Global Variables for Components in GUI */
        /** Constructor initialise game */
        public void showQuestion()
            int i;
                for(i=0; i<Questions.length; i++)
                        showQuestion.setText(Questions);
    Answer = Answers[i];
    public void makeFrame()
    // Creates Frame
    // Labels
    // TextBox for user input
    // Buttons
    // Sets Frame size
    // Listen to events (addActionListener)
    // Container ContentPane and add components to it
    // Frame Close and Visibility properties
    public void actionPerformed(ActionEvent e)
    // if QuitGame button is pressed do the following...
    if(e.getSource()==NextQ) {
    showQuestion.setText("Question 1: " + Questions[i]);
    else {            

    Dude are all 50 questions and answers in the array occupied?
    * array.length is the capacity of the array, not "how many are occupied".
    2. You're typically better of using an ArrayList instead of an array, because ArrayList's are resized dynamically.
    3. don't use "paralell" arrays... instead create a class which keeps your shite together, and then create a collection of them... something like...
    class QuestionTO { // to stands for Tranfer Object
      private final String question;
      private final String answer;
      public QuestionTO(String question, String answer) {
        this.question = question;
        this.answer = answer;
      public String getQuestion() { return this.question; }
      public String getAnswer() { return this.answer; }
      public String toString("<Question question=\""+getQuestion()+"\" answer=\""+getAnswer()+"\" />");
    class Questionarre {
      List<QuestionTO> questions = new ArrayList<QuestionTO>();
      public void print(PrintStream out) {
        for (QuestionTO question : questions) {
          out.println(question.toString()));
    }Hope that helps some... even if it's "a bit beyond" you at the moment... doing stuff "the proper way" is most often easier, coz the super-geeks have done most of the heavy lifting for you.
    Keith.

  • Need help with quiz captions in Captivate 6

    I have a six slide quiz set up in Captivate 6. I can get it to work but I need correct and incorrect captions to pop up when the answers are submitted. I am having difficulty figuring out how to make that happen.
    I want to click submit for each question and have either aa correct or incorrect caption come up.
    My other option is to wait and submit all and then when they go back to review (if they do) when they see their wrong answers, a caption will be there to tell them why it was incorrect.
    Can anyone give m any insight to how to make either of these happen?

    Hello and welcome,
    Success/failure captions are already there, you can customize them on each slide. It is even possible to have more than one failure level (if multiple attempts on question level) and have different feedback based on attempt.
    http://blog.lilybiri.com/question-question-slides-in-captivate
    Lilybiri

  • Need help placing Flash file in Captivate...

    I have a few short animations I did in Flash that I want to put in Adobe Captivate. They place fine and play fine. But I wanted to know if it is possible to have the last frame of the animation show for the rest of the captivate slide. I'm using Captivate 6 and Flash Pro CS6. Thanks!

    That depends mostly on what you did in the Flash file.  You should ideally NOT fade out the animation at the end and it should terminate with a stop(); action inside the Flash file on its last frame.  Have all of the animation on the main timeline in Flash so that it's not buried down inside a symbol, which would just continue to loop.  Then in Captivate, don't use fade out there either.

  • Need help with paratrooper game

    Dear experts,
    I have developed a game. Vision is given below.
    Helicopters constantly move from left-right as well as right-left.
    They drop parashooters.I have a fixed gun at centre.
    Turret of gun moves from 0 to 180 degree.Upkey fires and kills parashooters as well as helicopters.
    After some random time Jets come and they do proper bombing.I can also cut their bombs and kill jets.
    All actions cause fire (another animations)
    What i have tried to done is traditional old paratrooper game.
    I achieved though , but i face some probs.On my machine it works well .If i remove delay statement,things are very fast.
    If i use delay behaviour is different on different machines.On old PCs (P III or less RAM) machine it is very slow .On 2GB RAM ang
    good processing power ,it is really too fast.
    I want to keep a balance in speed in all machines.I thing javax.swing.Timer would be helpful but there are 15 actions which i do and where will i keep on
    putting actionperformed() bodies.I tried that and it go in vain.
    How to bring a consistent delay.I will post the code very soon.

    Ask specific questions. Post code, but make sure it's in the form of an SSCCE. The shorter it is, the better. Don't post your entire game.
    It sounds like you want to user a single Swing Timer to get a reliable frame rate. What are these 15 actions you mention?
    My guess is that you want to have a single Swing Timer call the methods of everything else instead of having 15 different things trying to sync up from separate timers.

  • I need help putting a game on my ipod....

    I feel stupid asking this question since im pretty capable of doing this normally, but for some reason i haven't been able to figure out how to upload my game to my ipod. Ive tried everything i could and nothing seems to work....what do i do?

    Go through the Verify functionality section of this article in the Apple Knowledge Base and let us know if it brings you any combination of joy and/or satisfaction.

  • Need Help Ending File

    Write a program to read a list of nonnegative integers and to display the largest integer, the smallest integer, and the average of all the integers. The user indicates the end of the input by entering a negative sentinel value that is not used in finding the largest, smallest, and average values.
    That's what I have to do. So far I have it all except the negative that I enter is reading as the minimum number. Any suggestions or any pointers on what I'm doing wrong?
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    import java.util.*;
    * @author mike
    public class maxMinAve {
         * @param args the command line arguments
        public static void main(String[] args) {
    Scanner keyboard = new Scanner(System.in);
    double num, max=0, min=1000000000, ave=0, total=0;
    int counter=0;
    System.out.print("Enter a list of non-negative integers and when you want to"
             +" end the list, enter a negative integer: ");
    num=keyboard.nextDouble();
    while (num >= 0){
         total= total+num;
         counter++;
         num=keyboard.nextDouble();
         if(num>max)
             max=num;
             else if(num<min)
                 min=num;
         if (counter>0)
             System.out.print("The average of the numbers is "+total/counter
                     +", the max is "+max+" and the min is "+min);
        }Then when I enter 3 4 5 -1. I get:
    run-single:
    Enter a list of non-negative integers and when you want to end the list, enter a negative integer:
    3 4 5 -1
    The average of the numbers is 4.0, the max is 5.0 and the min is -1.0
    BUILD SUCCESSFUL (total time: 5 seconds)

    Change this:
    System.out.print("Enter a list of non-negative integers and when you want to"
             +" end the list, enter a negative integer: ");
    num=keyboard.nextDouble();
    while (num >= 0){
         total= total+num;
         counter++;
         num=keyboard.nextDouble();
         if(num>max)
             max=num;
             else if(num<min)
                 min=num;
    }to:
    System.out.print("Enter a list of non-negative integers and when you want to"
             +" end the list, enter a negative integer: ");
    while ( (num = keyboard.nextDouble())>= 0){
         total= total+num;
         counter++;
         if(num>max)
             max=num;
         else if(num<min)
             min=num;
    }

  • I need help with ipod games...

    Dear other Itunes users,
    I have multiple libraries that I currently use. The problem is not that I can not successfully get the games on the ipod, but that all the games(purchased on different computers) cannot coexist on the ipod. The message warns me and states that it will replace the other games I purchased with the games from my current library. How can I fix this?
    Thank you, tjd51.

    Use the Transfer Purchases option to place all of the games on one computer, and then sync the games from that computer.
    (30664)

  • Need Help! Ipod Games

    I bought mini golf for my ipod. It shows on itunes but I cannot get it on my ipod. I have done the syncing. What else do I need to do? Thanks

    Mini golf is only compatible with the iPod 5th gen and can't be played on the iPod Classic.

  • Please I want buy some games from clash of clan but I can't  ,,,sad that I must purchase the app please need help

    Need help thnx

    Was the game downloaded via another iTunes account ? All apps (and other content from the store) are tied to the account that downloaded them, so only that account will be able to make in-app purchases in them. If that is the case and you want to be able to do IAPs via the account that you are currently logged in with then you will need to delete the game (which will delete your progress in it) and then download it on your account

  • Need help with Applet: Images

    DUKESTARS HERE, YOU KNOW YOU WANNA
    Hi,
    I'm designing an applet for some extra credit and I need help.
    This game that i have designed is called "Digit Place Game", but there is no need for me to explain the rules.
    The problem is with images.
    When I start the game using 'appletviewer', it goes to the main menu:
    http://img243.imageshack.us/img243/946/menuhy0.png
    Which is all good.
    But I decided that when you hover your cursor over one of the options such as: Two-Digits or Three-Digits, that the words that are hovered on turn green.
    http://img131.imageshack.us/img131/6231/select1ch3.png
    So i use the mouseMoved(MouseEvent e) from awt.event;
    The problem is that when i move the mouse around the applet has thick line blotches of gray/silver demonstrated below (note: these are not exact because my print screen doesn't take a picture of the blotches)
    http://img395.imageshack.us/img395/4974/annoyingmt1.png
    It also lags a little bit.
    I have 4 images in my image folder that's in the folder of the source code
    The first one has all text blue. The second one has the first option, Two-Digits green but rest blue. The third one has the second option, Three-Digits green but rest blue, etc.
    this is my code
    import java.applet.Applet;
    import java.awt.Graphics;
    import java.awt.event.*;
    import java.awt.*;
    public class DigitPlaceGame extends Applet implements MouseListener, MouseMotionListener {
         public boolean load = false;
         public boolean showStartUp = false;
         public boolean[] hoverButton = new boolean[3];
         Image load1;
         Image showStartUp1;
         Image showStartUp2;
         Image showStartUp3;
         Image showStartUp4;
         public void init() {
              load = true;
              this.resize(501, 501);
                   try {
                        load1 = getImage(getCodeBase(), "images/load1.gif");
                        repaint();
                   } catch (Exception e) {}
              load();
         public void start() {
         public void stop() {
         public void destroy() {
         public void paint(Graphics g) {
              if(load == true) {
                   g.drawImage(load1, 0, 0, null, this);
              } else if(showStartUp == true) {
                   if(hoverButton[0] == true) {
                        g.drawImage(showStartUp2, 0, 0, null, this);
                   } else if(hoverButton[1] == true) {
                        g.drawImage(showStartUp3, 0, 0, null, this);
                   } else if(hoverButton[2] == true) {
                        g.drawImage(showStartUp4, 0, 0, null, this);
                   } else {
                        g.drawImage(showStartUp1, 0, 0, null, this);
                        for(int i = 0; i < 3; i++) {
                             hoverButton[i] = false;
         public void load() {
              addMouseListener(this);
              addMouseMotionListener(this);
              showStartUp1 = getImage(getCodeBase(), "images/showStartUp1.gif");
              showStartUp2 = getImage(getCodeBase(), "images/showStartUp2.gif");
              showStartUp3 = getImage(getCodeBase(), "images/showStartUp3.gif");
              showStartUp4 = getImage(getCodeBase(), "images/showStartUp4.gif");
              showStartUp();
         public void showStartUp() {
              load = false;
              showStartUp = true;
         public void mouseClicked(MouseEvent e) {
              System.out.println("test");
         public void mouseMoved(MouseEvent e) {
              int x = e.getX();
              int y = e.getY();
              if(x >= 175 && x <= 330 && y >= 200 && y <= 235) {
                   hoverButton[0] = true;
                   repaint();
              } else if(x >= 175 && x <= 330 && y >= 250 && y <= 280) {
                   hoverButton[1] = true;
                   repaint();
              } else if(x >= 175 && x <= 330 && y >= 305 && y <= 335) {
                   hoverButton[2] = true;
                   repaint();
              } else {
                        for(int i = 0; i < 3; i++) {
                             hoverButton[i] = false;
                        repaint();
         public void mouseEntered(MouseEvent e) {
         public void mouseExited(MouseEvent e) {
         public void mousePressed(MouseEvent e) {
         public void mouseReleased(MouseEvent e) {
         public void mouseDragged(MouseEvent e) {
    }plox help me ploz, i need the extra credit for an A
    can you help me demolish the lag and stop the screen from flickering? thanks!!!!!
    BTW THIS IS EXTRA CREDIT NOT HOMework
    DUKESTARS HERE, YOU KNOW YOU WANNA
    Edited by: snoy on Nov 7, 2008 10:51 PM
    Edited by: snoy on Nov 7, 2008 10:53 PM

    Oh yes, I knew there could be some problem.......
    Now try this:
    boolean a,b,c;
    if((a=(x >= 175 && x <= 330 && y >= 200 && y <= 235)) && !hoverButton[0]) {
                   hoverButton[0] = true;
                   repaint();
              } else if((b=(x >= 175 && x <= 330 && y >= 250 && y <= 280)) && !hoverButton[1]) {
                   hoverButton[1] = true;
                   repaint();
              } else if((c=(x >= 175 && x <= 330 && y >= 305 && y <= 335)) && !hoverButton[2]) {
                   hoverButton[2] = true;
                   repaint();
              } else if ((!a && !b && !c)&&(hoverButton[0] || hoverButton[1] || hoverButton[2]){
                        for(int i = 0; i < 3; i++) {
                             hoverButton[i] = false;
                        repaint();
              }hope it works........
    Edited by: T.B.M on Nov 8, 2008 10:41 PM

Maybe you are looking for

  • Mini dvi to hdmi connection issues

    Trying to set up my 2007 imac to my Panasonic tv. I have a mini dvi to hdmi converter and an hdmi cable connected to my tv. I only get a blank screen on the tv, but it seems that the computer is connecting. When i go into sytem preferences for displa

  • Getting file not found exception in managed server

    Hi, Working on jdev 11.1.1.3.0, ADF BC with Rich faces. I am downloading file from network file system, i am successfully download file in integrated weblogic server, the same application when i am trying to run with my managed server(DEV Server), i

  • Verify/Repair disk permissions

    I heard that it's a good idea to verify and repair disk permissions. What does that do? And, when should I do it? -Eric

  • Unit conversion in the sales order

    Hi All, We have got a typical requirement from the user where they need unit conversion at sales order creation level. The scenario goes as below. Initially the order quantity will be enetered in terms of pieces and the price will be determined accor

  • Why do i have to pay for os x 10.8.4 update

    Just got new mac mini os x 10.8.3 software, gone online to update and had to pay for os x 10.8.4! Why