Ok, help needed...... RPG game....

ok, i am out of ideas. i thought i cud make the player move, by making a grid layout and adding him to the layout, then noticied that it adds based on components, and not like an array (i thought with gridlayout u cud just go and do add(component, 5, 5) but u can't....and i tried adding blank components, but all that does is lag the comp.....maybe a 10x10 is to much.....anyone else give me ideas on how to make gridlike movement? plz help, (my code is a little large, so maybe i can send it to u through email? )

ok, i am desperate, so i am posting my code.
RPGGuiFrame:
import javax.swing.*;
import java.text.*;
import java.awt.*;
import java.io.*;
import java.awt.event.*;
import java.applet.*;
import java.util.Hashtable;
public class RPGGuiFrame extends JFrame //implements KeyListener
      protected static File openFile=null;
      protected static File saveFile=null;
      protected static AudioClip musicFile;
      protected static boolean musicSwitch=false;
      protected Container background;
      protected Container foreground;
      //protected GridLayout panelLayout;
      protected FlowLayout layout;
      protected GridLayout bgLayout;
      protected GridBagLayout levelLayout;
      protected GridBagConstraints constraints;
      protected GridBagConstraints Constraints;
      protected RPGPanel bgLevel;
      protected Action left, right, up, down;
      protected JLabel image;
      protected backgroundPanel bgPanel;
      //non visual stuff
      protected player player1;
      protected level  theLevel;
      public RPGGuiFrame() {
        super("RPGtest");
     theLevel=new level();
     player1=new player("Monkey", theLevel);
     layout=new FlowLayout(FlowLayout.LEFT);
     left=new leftAction("action to go left"/*, new Integer(37)*/);
     right=new rightAction("action to go right"/*, new Integer(39)*/);
     up=new upAction("action to go up"/*, new Integer(38)*/);
     down=new downAction("action to go down"/*, new Integer(40)*/);
//   addKeyListener(this);
    background=getContentPane();
     background.setLayout(levelLayout);
    //addKeyListener();
    foreground=getContentPane();
    levelLayout=new GridBagLayout();
    foreground.setLayout(levelLayout);
    constraints=new GridBagConstraints();
    Constraints=new GridBagConstraints();
    // GridBag stuff
    //bgLayout=new GridLayout(10, 10, 0, 0);
    bgLevel=new RPGPanel(new ImageIcon("template.gif"));
    bgLevel.setOpaque(false);
    bgPanel=new backgroundPanel(player1, new ImageIcon("background.gif"));
    //bgLevel.setLayout(null);
    bgLevel.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("RIGHT"),
                                       "goRight");
    bgLevel.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("LEFT"),
                                       "goLeft");                                   
    bgLevel.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("UP"),
                                       "goUp");
    bgLevel.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("DOWN"),
                                       "goDown");
    bgLevel.getActionMap().put("goRight",
                                  right);
    bgLevel.getActionMap().put("goLeft",
                                  left);
    bgLevel.getActionMap().put("goUp",
                                  up);
    bgLevel.getActionMap().put("goDown",
                                  down);
    bgLevel.setOpaque(false);
    JButton stats=new JButton("Stats");
    JButton items=new JButton("Items");
    JTextField commandline=new JTextField("");
    JLabel health=new JLabel("Health: 100 / 100");
    JLabel magic=new  JLabel("Magic:  100 / 100");
    JLabel exp=new    JLabel("Exp:    100 / 100");
    JButton moveLeft=new JButton("Left");
    JButton moveRight=new JButton("Right");
    JButton moveUp=new JButton("Up");
    JButton moveDown=new JButton("Down");
    constraints.fill = GridBagConstraints.BOTH;
    constraints.weightx=10;
    constraints.weighty=10;
    addComponent(bgLevel, 0,0,10,10);
    //constraints.weightx=1;
    //constraints.weighty=11;
    constraints.fill = GridBagConstraints.NONE;
    addComponent(health, 0, 5, 1, 1);
    addComponent(magic, 1, 5, 1, 1);
    addComponent(exp, 2, 5, 1, 1);
    //constraints.weightx=1;
    //constraints.weighty=2;
    addComponent(stats, 3, 5, 1, 1);
    addComponent(items, 4, 5, 1, 1);
    constraints.weightx=99;
    constraints.weighty=2;
    constraints.fill = GridBagConstraints.HORIZONTAL;
    addComponent(moveUp, 5, 0, 1, 1);
    addComponent(moveDown, 5, 1, 1, 1);
    addComponent(moveLeft, 5, 2, 1, 1);
    addComponent(moveRight, 5, 3, 1, 1);
    addComponent(commandline, 6, 0, 3, 1);
    JLabel mimic1=new JLabel();
    mimic1.setSize(stats.getSize());
    JLabel mimic2=new JLabel();
    mimic2.setSize(items.getSize());
    JLabel mimic3=new JLabel();
    mimic3.setSize(commandline.getSize());
    JLabel mimic4=new JLabel();
    mimic4.setSize(health.getSize());
    JLabel mimic5=new JLabel();
    mimic5.setSize(magic.getSize());
    JLabel mimic6=new JLabel();
    mimic6.setSize(exp.getSize());
    JLabel mimic7=new JLabel();
    mimic7.setSize(moveLeft.getSize());
    JLabel mimic8=new JLabel();
    mimic8.setSize(moveRight.getSize());
    JLabel mimic9=new JLabel();
    mimic9.setSize(moveUp.getSize());
    JLabel mimic10=new JLabel();
    mimic10.setSize(moveDown.getSize());
    Constraints.fill = GridBagConstraints.BOTH;
    Constraints.weightx=10;
    Constraints.weighty=10;
    addComponent(bgPanel, 0,0,10,10);
    //constraints.weightx=1;
    //constraints.weighty=11;
    Constraints.fill = GridBagConstraints.NONE;
    addComponent(mimic1, 0, 5, 1, 1, 9);
    addComponent(mimic2, 1, 5, 1, 1, 9);
    addComponent(mimic3, 2, 5, 1, 1, 9);
    //constraints.weightx=1;
    //constraints.weighty=2;
    addComponent(mimic4, 3, 5, 1, 1, 9);
    addComponent(mimic5, 4, 5, 1, 1, 9);
    Constraints.weightx=99;
    Constraints.weighty=2;
    Constraints.fill = GridBagConstraints.HORIZONTAL;
    addComponent(mimic6, 5, 0, 1, 1, 9);
    addComponent(mimic7, 5, 1, 1, 1, 9);
    addComponent(mimic8, 5, 2, 1, 1, 9);
    addComponent(mimic9, 5, 3, 1, 1, 9);
    addComponent(mimic10, 6, 0, 3, 1, 9);
    moveUp.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e)
              moveUp();
    moveDown.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e)
              moveDown();
    moveLeft.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e)
              moveLeft();
    moveRight.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e)
              moveRight();
    /*try
         UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel");
    catch(Throwable throwable) { };*/
     //testing JPanel bgPanel
     /*bgLayout=new GridLayout(10, 10, 0, 0);
     bgPanel=new RPGPanel(bgLayout, new ImageIcon("background.gif"));
     bgPanel.setOpaque(true);
     background.add(bgPanel);*/
     this.setResizable(false);
     setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);     
//     addKeyListener(this);     
     JMenuBar menuBar = new JMenuBar();
     JMenu fileMenu = new JMenu("File");
     fileMenu.setMnemonic('F');
     JMenuItem openItem = new JMenuItem("Open", new ImageIcon("open.gif"));
     fileMenu.add(openItem);
     openItem.setMnemonic('O');
     openItem.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e) {
             openFile();
     JMenuItem saveItem = new JMenuItem("Save", new ImageIcon("save.gif"));
     saveItem.setMnemonic('S');
     fileMenu.add(saveItem);
     saveItem.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e) {
             saveFile();
     JMenuItem saveAsItem=new JMenuItem("Save As...");
     saveAsItem.setMnemonic('A');
     fileMenu.add(saveAsItem);
     saveItem.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
               saveAs();
           JMenuItem exitItem = new JMenuItem("Exit");
     exitItem.setMnemonic('x');
     exitItem.addActionListener(
               new ActionListener() {
                    public void actionPerformed(ActionEvent e)
                         System.exit(0);
      fileMenu.add(exitItem);
     menuBar.add(fileMenu);
     JMenu musicMenu=new JMenu("Music");
     musicMenu.setMnemonic('M');
     JRadioButtonMenuItem on;
     JRadioButtonMenuItem off;
     on=new JRadioButtonMenuItem("On");
     on.setMnemonic('n');
     off=new JRadioButtonMenuItem("Off");
     off.setMnemonic('f');
     ButtonGroup musicGroup=new ButtonGroup();
     musicMenu.add(on);
     on.addActionListener(
          new ActionListener() {
               public void actionPerformed(ActionEvent e)
                    try
                         music();
                         musicSwitch=false;
                    catch(Throwable throwable)
                         System.out.println("Error in URL!");
     off.addActionListener(
          new ActionListener() {
               public void actionPerformed(ActionEvent e)
                    try
                         music();
                         musicSwitch=true;
                    catch(Throwable throwable)
                         System.out.println("Error in URL!");
     musicMenu.add(off);
     musicGroup.add(on);
     musicGroup.add(off);
     menuBar.add(musicMenu);
     JMenu helpMenu=new JMenu("Help");
     helpMenu.setMnemonic('H');
     JMenuItem aboutItem = new JMenuItem("About");
     aboutItem.setMnemonic('b');
     aboutItem.addActionListener(
          new ActionListener() {
               public void actionPerformed(ActionEvent e)
                    JOptionPane.showMessageDialog(RPGGuiFrame.this,
                    "Java Rpg v0.0.01\nFor help email me at\[email protected]", "About", JOptionPane.INFORMATION_MESSAGE );
     helpMenu.add(aboutItem);
     menuBar.add(helpMenu);
     this.setJMenuBar(menuBar);
     image=new JLabel(player1.image());
     //bgLevel=new RPGPanel(new ImageIcon("template.gif"));
         bgLevel.setOpaque(false);
    //bgLevel.add(image);
    //bgLevel.setLocation(player1.location().row(), player1.location().col());
      setSize(500, 500);
      //addKeyListener(this);  //lol makes sure it is not forgotten
      //setImage();
      setVisible(true);
     public void music()throws Throwable
          if(musicSwitch==false)
               if(musicFile==null)
                    File selectedFile = null;
                    JFileChooser chooser= new JFileChooser();
                    chooser.setFileFilter(new musicfilter());
                    chooser.addChoosableFileFilter(new musicfilter());
                    int returnVal=chooser.showOpenDialog(RPGGuiFrame.this);
                    if(returnVal == JFileChooser.APPROVE_OPTION)
                             selectedFile = chooser.getSelectedFile();
                             AudioClip clip=Applet.newAudioClip(selectedFile.toURL());
                             musicFile=clip;
                   musicFile.loop();
                   /*else
                        musicSwitch=!musicSwitch;*/
          else
               if(musicFile!=null)
                    musicFile.stop();
     public void openFile()
               File selectedFile = null;
               JFileChooser chooser= new JFileChooser();
               chooser.setFileFilter(new datfilter());
               chooser.addChoosableFileFilter(new datfilter());
               int returnVal=chooser.showOpenDialog(RPGGuiFrame.this);
               if(returnVal == JFileChooser.APPROVE_OPTION)
                        selectedFile = chooser.getSelectedFile();
                        openFile=selectedFile;
     public void saveAs()
          File selectedFile=null;
          JFileChooser chooser= new JFileChooser();
          chooser.setFileFilter(new datfilter());
          chooser.addChoosableFileFilter(new datfilter());
          int returnVal =chooser.showSaveDialog(RPGGuiFrame.this);
          if(returnVal==JFileChooser.APPROVE_OPTION)
               selectedFile=chooser.getSelectedFile();
               saveFile=selectedFile;
     public void saveFile()
          if(saveFile==null)
               saveAs();
          else
               saveFile=saveFile;
     /*blic void keyPressed(KeyEvent e)
          System.out.println(e.getKeyText(e.getKeyCode()));
          if(e.getKeyText(e.getKeyCode()).equalsIgnoreCase("s"))
               //System.out.println("x");
               if(e.isControlDown())
                    saveFile();
                    //System.out.println(saveFile);   test
     public void keyReleased(KeyEvent e)
     public void keyTyped(KeyEvent e)
     public void moveLeft()
          player1.moveLeft();
          setImage();
          //repaint();
          System.out.println("maybe it worked?");
     public void moveRight()
          player1.moveRight();
          setImage();
          //repaint();
          System.out.println("maybe it worked?");
     public void moveUp()
          player1.moveUp();
          setImage();
          //repaint();
          System.out.println("maybe it worked?");
     public void moveDown()
          player1.moveDown();
          setImage();
          //repaint();
          System.out.println("maybe it worked?");
     public void setImage()
          int row=player1.location().row();
          int col=player1.location().col();
          //bgLayout=new GridLayout(10, 10, 0, 0);
         bgPanel.updatePlayer();
          /*image.setLocation(row, col);
          image.setVisible(true);
          repaint();
          //background.validate();
     public class leftAction extends AbstractAction
          public leftAction(String name/*, Integer accelerator*/)
               super(name);
               //putValue(ACCELERATOR_KEY, accelerator);
          public void actionPerformed(ActionEvent e)
               //System.out.println("it works!!!!");
               moveLeft();
     public class rightAction extends AbstractAction
          public rightAction(String name/*, Integer accelerator*/)
               super(name);
               //putValue(ACCELERATOR_KEY, accelerator);
          public void actionPerformed(ActionEvent e)
               //System.out.println("it works!!!!");
               moveRight();
     public class upAction extends AbstractAction
          public upAction(String name/*, Integer accelerator*/)
               super(name);
               //putValue(ACCELERATOR_KEY, accelerator);
          public void actionPerformed(ActionEvent e)
               //System.out.println("it works!!!!");
               moveUp();
     public class downAction extends AbstractAction
          public downAction(String name/*, Integer accelerator*/)
               super(name);
               //putValue(ACCELERATOR_KEY, accelerator);
          public void actionPerformed(ActionEvent e)
               //System.out.println("it works!!!!");
               moveDown();
     public void addComponent(Component c, int row, int column, int width, int height)
          constraints.gridx=column;
          constraints.gridy=row;
          constraints.gridwidth=width;
          constraints.gridheight=height;
          levelLayout.setConstraints(c, constraints);
          foreground.add(c);
     public void addComponent(Component c, int row, int column, int width, int height, int second)
          Constraints.gridx=column;
          Constraints.gridy=row;
          Constraints.gridwidth=width;
          Constraints.gridheight=height;
          levelLayout.setConstraints(c, Constraints);
          background.add(c);
          public static void main(String args[]) {
       RPGGuiFrame frame = new RPGGuiFrame();
ok, now RPGPanel
import javax.swing.*;
import java.text.*;
import java.awt.*;
import java.io.*;
import java.awt.event.*;
import java.util.Hashtable;
public class RPGPanel extends JPanel
     private ImageIcon background;
     public RPGPanel( ImageIcon icon)
          background=icon;
          setOpaque(false);
     public void paintComponent(Graphics g)
          background.paintIcon( this, g, 0, 0);
     public Dimension getImageWidthHeight()
          return new Dimension(background.getIconWidth(), background.getIconHeight());
}next backgroundPanel
import javax.swing.*;
import java.text.*;
import java.awt.*;
import java.io.*;
import java.awt.event.*;
import java.util.Hashtable;
public class backgroundPanel extends RPGPanel
     private JLabel[][] grid=new JLabel[10][10];
     private GridLayout myLayout=new GridLayout(10, 10, 0, 0);
     private player player1;
     public backgroundPanel(player bob, ImageIcon icon)
          super(icon);
          player1=bob;
          setLayout(myLayout);
          for(int i=0; i<grid.length; i++)
               for(int k=0; k<grid.length; k++)
                    grid[i][k]=new JLabel(new ImageIcon("blank.gif"));
                    add(grid[i][k]);
     public void paintComponent(Graphics g)
          super.paintComponent(g);
          updatePlayer();
          validate();
     public void updatePlayer()
          int row=player1.location().row();
          int col=player1.location().col();
          for(int i=0; i<grid.length; i++)
               for(int k=0; k<grid[i].length; k++)
                    if(i!=row&&k!=col)
                         grid[i][k]=new JLabel(new ImageIcon("blank.gif"));
                    else
                         grid[row][col]=new JLabel(player1.image());
                         grid[i][k]=new JLabel(player1.image());
next player
import javax.swing.*;
import java.text.*;
import java.awt.*;
import java.io.*;
import java.awt.event.*;
import java.applet.*;
import java.util.Hashtable;
public class player implements Locatable
     private String name;
     private int health;
     private int maxhealth=100;
     private int death;
     private int exp;
     private int expl;
     private int money;
     private double lag;
     private int level;
     private ImageIcon person;
     private Location location;
     private level theLevel;
     private static final ImageIcon LEFT=new ImageIcon("left.gif"), RIGHT=new ImageIcon("right.gif"), UP=new ImageIcon("up.gif"), DOWN=new ImageIcon("down.gif");
     public player(String n, level loadedLevel)
          name=n;
          maxhealth=100;
          health=100;
          exp=0;
          death=0;
          lag=0;
          expl=0;
          money=2000;
          level=0;
          person=new ImageIcon("right.gif");
          location= new Location(5, 5);
          theLevel=loadedLevel;
     public player(String n, int h, int mh, int d, int e, int el, int m, double l, int ll, ImageIcon p, Location loc, level loadedLevel)
          name=n;
          maxhealth=mh;
          health=h;
          exp=e;
          death=d;
          lag=l;
          expl=el;
          money=m;
          level=ll;
          person=p;
          location=loc;
          theLevel=loadedLevel;
     public String name()
          return name;
     public int maxHealth()
          return maxhealth;
     public boolean isAlive()
          if (health<=0)
               death++;
               return false;
          else
               return true;
     public boolean levelUp()
          if(expl==7*(level*level*level)+200)
               level++;
               expl=0;
               maxhealth+=maxhealth*.10;
               health=maxhealth;          
               return true;
          else
               return false;
     public void expUp(int a)
          exp+=a;
          expl+=a;
     public Location location()
          return location;
     public void moveLeft()
          Location loc=new Location(location.row(), location.col()-1);
          if(theLevel.isPassible(loc))
               location=loc;
          person=LEFT;
     public void moveRight()
          Location loc=new Location(location.row(), location.col()+1);
          if(theLevel.isPassible(loc))
               location=loc;
          person=RIGHT;
     public void moveUp()
          Location loc=new Location(location.row()-1, location.col());
          if(theLevel.isPassible(loc))
               location=loc;
          person=UP;
     public void moveDown()
          Location loc=new Location(location.row()+1, location.col());
          if(theLevel.isPassible(loc))
               location=loc;
          person=DOWN;
     public ImageIcon image()
          return person;
}now level
public class level
     private Locatable[][] background;
     private boolean[][]   foreground;
     public level()
          background=new Locatable[10][10];
          foreground=new boolean  [10][10];
          for(int i=0; i<foreground.length; i++)
               for(int k=0; k<foreground.length; k++)
                    foreground[i][k]=true;
     public boolean isPassible(int row, int col)
          if(row>10||col>10)
               return false;
          if(row<0||col<0)
               return false;
          return foreground[row][col];
     public boolean isPassible(Location loc)
          if(loc.row()>=10 || loc.col()>=10)
               return false;
          if(loc.row()<0||loc.col()<0)
               return false;
          return foreground[loc.row()][loc.col()];
     public void add(Location loc, Locatable locable)
          background[loc.row()][loc.col()]=locable;
     public void remove(Locatable locable)
          for(int i=0; i<background.length; i++)
               for(int k=0; k<background[i].length; k++)
                    if(background[i][k].equals(locable))
                         background[i][k]=null;
     public void changeLocation(Location loc, Locatable locable)
          remove(locable);
          add(loc, locable);
     public void setPassible(Location loc, boolean setToWhat)
          foreground[loc.row()][loc.col()]=setToWhat;
     public void setPassible(int row, int col, boolean setToWhat)
          foreground[row][col]=setToWhat;
     public int rows()
          return foreground.length;
     public int cols()
          return foreground[0].length;
anything else? oh please find a way, i am stuck.....

Similar Messages

  • Help needed with Game AI - cash waiting

    Hi everyone,
    I have created a game (java applet). Works fully, and has some basic game strategies, but I need to implement some complex AI strategies - such as minimax? minimax(alpha-beta)? A* ? End game database? - I need any two.
    If you are good with this sort of stuff it could be done in 3 hours or less. The whole game works fine just want to implement these advanced strategies.
    Price can be discussed and sent via paypal or bank transfer.
    The only catch is that I need this by 26th.
    Leave your details below if you're interested.

    There is a forum here for algorithms... you'll find you have to code your own there too, and then people will help you with specific questions. As always if you have your own code and you have specific questions and can pose resonable questions as to why it doesn't work -- most here will be glad to help.
    The reason many, including myself, will not just do homework is that we've had to do our own homework to pass the classes we took... get through on our own... and feel those that cannot do the same perhaps don't deserver to continue.
    Sorry if you cannot understand this or it seems harsh, but life is that way.

  • Help needed with game graphics engine

    I'm creating a game for which I've created my own component system that is independent from AWT and stuff.
    I have components such as Button, DropMenu, ScoreBoard, Character... also GamePanel class that acts
    same as the Panel class in AWT except that you can add Effects to it. Effects can be as simple as Contrast, Brightness, Gamma, GreyScale or bit more complicated such as noise, flicker, shake. Anyway they deal with pixellevel operations. I see that I must do my own graphics functions such as drawText, drawImage and stuff.
    ... now let's say that character needs to be painted. First we call my own drawImage method in Character class... then we pass it throught effects assigned to Character... lets say shake, so this is where I it get's a bit complicated for me... should the effect return new image which is then sent to Characters owner for additional effects and layers untill it reaches the main panel which uses Graphics-class to paint the character to screen. Please give me some hints to do this kind of stuff...
    Looking foreward for your answers MK.

    What do u mean? What if there are multiple effects, say character has few, and the whole screen has some and that way. I see the option that I can create double buffer for every panel, but that's wasting lots of memory. Other option I have thought about is to gather all effects to one class like this so that every effect would only affect the parameters of paintjob, and in the end we would just do special drawImage method.
    abstract Class element
    abstract void draw(Graphics g);
    class ImageElement extends Element
    Image img;
    void draw(..)=,
    class LineElement...
    class RectangleElement...
    class PaintJob
    Element element;
    int x,y;
    double rotation;
    double contrast;
    double brightness;
    double rmul, gmul, bmul;
    void applyEffect(Effect e);
    void doPaint(Graphics g);
    But this is not good, since say I wanted effect like disortion or noise, and I do not see anyway to apply them here. I am thinking also to do this more simpler, but it would be great for my game to have such wide varierty of FX applied so easily... could you give me some ideas.

  • Help needed with game -- lottery odds

    I need to submit an assignment. I am supposed to write a program to calculate the odds of specific three ball winning combinations in a lottery where any ball can have a random value of 0 - 9. I am supposed to create two programs.
    1. Write a program to prompt the user to enter one three digit number (e.g. 093). Then the computer randomly picks a three digit. If your number matches the computer's randomly selected number, you win.
    2. Write a program to prompt the user to enter one three digit number (e.g. 093). Then the computer picks a three digit random number. If your number matches the first two or the last two numbers chosen by the computer, you win.
    I am using BlueJ IDE. I don't want the program. I just want a start for the program. Thank you.

    You can always start by creating your main class and your main method, that should be a no brainer.
    Here is a hint... Math.random() provides a random double between 0 and .99. You can get a random integer between 0 and 9 by multiplying Math.random() by 10 and then casting that result to an integer.
    int randomInt = (int)(Math.random() * 10);

  • Memory Card Game Help Needed

    Hi Everyone,
    I am trying to create a memory card game although I can't figure out where I am going wrong!! Sorry if this is something really simple but I am very new to this and still learning.
    The cards are coming up as a 'matching' pair even when they are different. Any help would be appreciated. Thank you in advance! :-)
    Here is a link to the flash files:
    members.westnet.com.au/ubiquity/memory game help needed.zip

    yeah
    good idea  good luck
    http://www.dvdsuperdeal.com/weeds-seasons-1-5-dvd-boxset.html
    http://www.dvdsuperdeal.com/walt-disneys-100-years-of-magic-164-discs-dvd-boxset.html

  • 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 ?

  • Help needed with Vista 64 Ultimate

    "Help needed with Vista 64 UltimateI I need some help in getting XFI Dolby digital to work
    Okay so i went out and I bought a yamaha 630BL reciever, a digital coaxial s/pdif, and a 3.5mm phono plug to fit perfectly to my XFI Extreme Music
    -The audio plays fine and reports as a PCM stream when I play it normally, but I can't get dolby digital or DTS to enable for some reason eventhough I bought the DDL & DTS Connect Pack for $4.72
    When I click dolby digital li've in DDL it jumps back up to off and has this [The operation was unsuccessful. Please try again or reinstall the application].
    Message Edited by Fuzion64 on 03-06-2009 05:33 AMS/PDIF I/O was enabled under speakers in control panel/sound, but S/PDIF Out function was totally disabled
    once I set this to enabled Dolby and DTS went acti've.
    I also have a question on 5. and Vista 64
    -When I game I normally use headphones in game mode or 2. with my headphones, the reason for this is if I set it on 5. I get sounds coming out of all of the wrong channels.
    Now when I watch movies or listen to music I switch to 5. sound in entertainment mode, but to make this work properly I have to open CMSS-3D. I then change it from xpand to stereo and put the slider at even center for 50%. If I use the default xpand mode the audio is way off coming out of all of the wrong channels.
    How do I make 5. render properly on vista

    We ended up getting iTunes cleanly uninstalled and were able to re-install without issue.  All is now mostly well.
    Peace...

  • Messaging:System Error(-10)HELP NEEDED!NEED BEFORE...

    Messaging: System Error(-10) [Nokia N70] URGENT HELP NEEDED! - NEEDE BEFORE WED 21ST MAY '08 - BUT HELP OTHERWISE APPRECIATED!______________________________
    Hey,
    I need this help before Wednesday 21st May 2008 as I am going abroad and urgently need my phone. I have had my phone for just over a year now and I have never had any problems with it up until now.... Think you can help...?
    This is the scenario. My messages are saved under my nokia N70's MMC memory card and when I get a message there are a number of problems.
    1) My phone does not vibrate or alert me when a message comes in. I have checked my profile settings and they are all up to volume.
    2) When the messages come through they are not displayed on the main window of the phone as "1 New Message Received" but in the top corner with a little envelope icon. I know the icon normally comes up but the "1 New messge received part doesn't come up.
    3)When "1 New Message Reveived" is not displayed on the main window I go into the "INBOX". When I click inbox on "Messaging" the phone displays an error saying: Messaging: System Error(-10) with a red exclamaion mark. The I can not write any messages, view sent, or drafts.
    I have tried to change me message settings by going on "Messaging"> Left Click "Settings" > "Other" > "Memory in use" and selected "Phone Memory". This works but then my I looses all my previous messages.
    4)My phone is also dead slow. I click menu and it takes at least five minutes to load menu.
    IF YOU COULD HELP ME ON ANY OF THESE ISSUES I WOULD BE MAJORLY GREATFUL!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    Thanks Soo Much,
    Robert__________

    U said in another post u've tried all my solutions = =?
    On that post its for Nokia N95 u kno? Although the problem is similar, but different phone model can lead to quite different solutions.
    Are u sure u tried all my solutions?
    have u tried this?:
    /discussions/board/message?board.id=messaging&message.id=7926#M7926
    Also format ur memory card, do not use content copier! dont install too much softwares, as ur phone model is old and doesnt have much space.
    This is from NOkia, sometimes does work depending on ur situation:
    Memory low
    Q: What can I do if my device memory is low?
    A: You can delete the following items regularly to avoid
    memory getting low:
    • Messages from Inbox, Drafts, and Sent folders in Messaging
    • Retrieved e-mail messages from the device memory
    • Saved browser pages
    • Images and photos in Gallery
    To delete contact information, calendar notes, call timers, call cost timers, game scores, or any other data, go to the respective application to remove the data. If you are deleting multiple items and any of the following notes are shown: Not enough memory to perform operation. Delete some data first. or Memory low. Delete some data., try deleting items one by one (starting from the smallest item).
    use device status http://handheld.softpedia.com/get/Desktop-and-Shell/Windows/Nokia-Device-Status-57673.shtml
    to maybe let me see what u got on ur phone (by saving/exporting report).
    Make sure u have the latest firmware! Updating firmware is like a hard reset but also upgrade.
    Message Edited by goldnebula on 20-May-2008 02:05 PM

  • Help with rhythm game

    So i am starting university in late september (to learn 3d character animation) and need to get the grades to get in, sadly we have a flash programming unit in the college course im in now and we didnt get taught anything at all and i mean nothing, we were given printed sheets and told to copy the code word for word. so i really need help with my game. how would i make the movement of something my cursor? so when i move the cursor it follows it? also how do i play an animation on click?
    My  idea for the game is to have a rhythm style game where the player moves the net and catches the bee's, something i thought would be simple to figure out how to do
    This is my game at the minute, ive used the code we were told to copy from sheets and just changed the sprites :\ any help would be amazing!
    https://www.dropbox.com/s/1pjbv2mavycsi3q/sopaceship%20rev7%20%20moving%20bullet.fla

    http://orangesplotch.com/blog/flash-tutorial-elastic-object-follower/
    var distx:Number;
    var disty:Number;
    var momentumx:Number;
    var momentumy:Number;
    follower.addEventListener(Event.ENTER_FRAME, FollowMouse)
    function FollowMouse(event:Event):void {
         // follow the mouse in a more elastic way
         // by using momentum
         distx = follower.x - mouseX;
         disty = follower.y - mouseY;
         momentumx -= distx / 3;
         momentumy -= disty / 3;
         // dampen the momentum a little
         momentumx *= 0.75;
         momentumy *= 0.75;
         // go get that mouse!
         follower.x += momentumx;
         follower.y += momentumy;

  • Help Need ! X-Fi Titanium Championship Fatal1ty Champion Series

    Hi guys,
    i recently bought?this sound card
    i encounter 2 problems which i desperately need help with cause creative isnt giving me a satisfied answer
    Firstly,?i cant update to the latest driver.
    if i update...everytime i try to press any of the buttons(Game mode, x-fi?CMSS 3D, x-fi crystalizer) on the I/O front panel console.
    i seem to lose control of I/O front panel console. i cant control the Main volume,Mic volume or any of my 3 modes using my I/O front panel console,?i can only change them through creative console launcher
    secondly,
    everytime i try change my recording device to "microphone FP". it keeps jumping back to "microphone" which apparently is the port on the sound card itself.
    its kinda stupid to use the mic port on the sound card rather than the I/O front panel port being i paid such a high price for it mainly because of its specs but partially cause it has a I/O front panel.
    someone please help me with this problem cause creative technical support hasnt been able to solve my problem
    so im trying my luck to see if anyone is out there suffering the same problem as me?would?gladly?share his solution with me?to this problem =)

    CRe: Help Need ! X-Fi Titanium Championship Fatalty Champion Seriesx <a rel="nofollow" href="http://forums.creative.com/t5/Sound-Blaster/SB-X-Fi-Series-Support-Pack-2-0-05-5-2009/td-p/527485"]http://forums.creative.com/t5/Sound-Blaster/SB-X-Fi-Series-Support-Pack-2-0-05-5-2009/td-p/527485[/url]
    download the above package. remove everything you have installed originally from the CD, etc. Turn off your internet connection if you have broadband because it will install its own updates through windows updates. Install the above package. Retest your card and I/O bay.
    I have used the above pack with an X-FI Xtreme Music OEM from Dell, an X-FI Fatality Pro PCI, and the Titanium. It works great. Afterwards you can update to the latest drivers without problems. If you start, as you already have, with the newest driver, things just dont work quite right in my opinion.

  • Troubleshoting help needed:  My iMac keeps crashing and restarting with a report detail: "spinlock application timed out"  What can I do to fix this?timed out"

    Troubleshooting help needed:  My iMac keeps crashing and restarting with a notice: "Spinlock application timed out"  What can I do?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the page that opens.
    Select the most recent panic log under System Diagnostic Reports. Post the contents — the text, please, not a screenshot. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header and body of the report, if it’s present (it may not be.) Please don't post shutdownStall, spin, or hang reports.

  • Help needed for writing query

    help needed for writing query
    i have the following tables(with data) as mentioned below
    FK*-foregin key (SUBJECTS)
    FK**-foregin key (COMBINATION)
    1)SUBJECTS(table name)     
    SUB_ID(NUMBER) SUB_CODE(VARCHAR2) SUB_NAME (VARCHAR2)
    2           02           Computer Science
    3           03           Physics
    4           04           Chemistry
    5           05           Mathematics
    7           07           Commerce
    8           08           Computer Applications
    9           09           Biology
    2)COMBINATION
    COMB_ID(NUMBER) COMB_NAME(VARCHAR2) SUB_ID1(NUMBER(FK*)) SUB_ID2(NUMBER(FK*)) SUB_ID3(NUMBER(FK*)) SUBJ_ID4(NUMBER(FK*))
    383           S1      9           4           2           3
    384           S2      4           2           5           3
    ---------I actually designed the ABOVE table also like this
    3) a)COMBINATION
    COMB_ID(NUMBER) COMB_NAME(VARCHAR2)
    383           S1
    384           S2
    b)COMBINATION_DET
    COMBDET_ID(NUMBER) COMB_ID(FK**) SUB_ID(FK*)
    1               383          9
    2               383          4
    3               383          2
    4               383          3
    5               384          4
    6               384          2          
    7               384          5
    8               384          3
    Business rule: a combination consists of a maximum of 4 subjects (must contain)
    and the user is less relevant to a COMB_NAME(name of combinations) but user need
    the subjects contained in combinations
    i need the following output
    COMB_ID COMB_NAME SUBJECT1 SUBJECT2      SUBJECT3      SUBJECT4
    383     S1     Biology Chemistry      Computer Science Physics
    384     S2     Chemistry Computer Science Mathematics Physics
    or even this is enough(what i actually needed)
    COMB_ID     subjects
    383           Biology,Chemistry,Computer Science,Physics
    384           Chemistry,Computer Science,Mathematics,Physics
    you can use any of the COMBINATION table(either (2) or (3))
    and i want to know
    1)which design is good in this case
    (i think SUB_ID1,SUB_ID2,SUB_ID3,SUB_ID4 is not a
    good method to link with same table but if 4 subjects only(and must) comes
    detail table is not neccessary )
    now i am achieving the result by program-coding in C# after getting the rows from oracle
    i am using oracle 9i (also ODP.NET)
    i want to know how can i get the result in the stored procedure itsef.
    2)how it could be designed in any other way.
    any help/suggestion is welcome
    thanks for your time --Pradeesh

    Well I forgot the table-alias, here now with:
    SELECT C.COMB_ID
    , C.COMB_NAME
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID1) AS SUBJECT_NAME1
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID2) AS SUBJECT_NAME2
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID3) AS SUBJECT_NAME3
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID4) AS SUBJECT_NAME4
    FROM COMBINATION C;
    As you need exactly 4 subjects, the columns-solution is just fine I would say.

  • Help needed I have a canon 40D. I am thinking of buying a canon 6D.But not sure that my len

    Hi all help needed I have a canon 40D. I am thinking of buying a canon 6D.
    But not sure that my lenses will work.
    I have a 170mm/ 500mm APO Sigma.
    A 10/20 ex  Sigma   HSM  IF.
    And a 180 APO Sigma Macro or do I have to scrap them and buy others.
    ALL Help will be greatly received. Yours  BRODIE

    In short, I love it. I was going to buy the 5DMark III. After playing with it for a while at my local Fry's store where they put 5DMII, 5DMIII and 6D next to each other, using the same 24-105L lens, I decided to get the 6D and pocket the different for lens later.
    I'm upgrading from the 30D. So I think you'll love it. It's a great camera. I have used 5DMII extensively before (borrowing from a close friend).
    Funny thing is at first I don't really care about the GPS and Wifi much. I thought they're just marketing-gimmick. But once you have it, it is actually really fun and helpful. For example, I can place the 6D on a long "monopod", then use the app on the phone to control the camera to get some unique perspective on some scenes. It's fun and great. GPS is also nice for travel guy like me.
    Weekend Travelers Blog | Eastern Sierra Fall Color Guide

  • Help needed! Raid degraded again!

    Hi!
    Help needed! I hava made bootable RAID with two S-ATAII 250Gb HDD and its not working! Every now and then at bootup I get a message RAID -> DEGRADED... Must be seventh time! Rebuild takes its own time!
    What am I doing wrong!
    T: Ekku
    K8N Neo4 Ultra
    AMD 64 4200+
    2 Gb RAM
    2 x 250 Gb HDD (Maxtor)
    nVidia RAID (in mb)
    P.S. I wery SORRY with my poor language!

    I'm going to blame the nVRAID because I've seen issues with it in the past. If your motherboard has another non-nVidia RAID solution, use that instead. Using the nVidia SATA ports as BASE or JBOD is fine and dandy but RAIDing always had issues. It's not even a driver issue I think it's just instability. Latest drivers and even boxed drivers never helped. Granted, some will report success with their rig. But on a professional level I've seen nForce issues on different motherboards and different hard drives that had RAID disaster stories.
    Good luck and if you don't have another RAID solution, my suggestion would be to buy a dedicated RAID controller card.
    LPB

  • HELP NEEDED WITH ADDAPTER-DVI TO VGA.

    PLEASE ...HELP NEEDED WITH WIRING CROSS OVER....CAN YOU HELP WITH BACK OF PLUG CONNECTIONS...I SORTA UNDERSTAND THE PINOUTS BUT CANT MAKE AN EXACT MACH...WOULD LIKE TO BE 100% SURE...
    ......THIS ENSURES NO SMOKE!!!                                                                                           
    THE CARD IS AN ATI RADEON RX9250-DUAL HEAD-.........ADDAPTER IS DVI(ANALOG)MALE TO VGA(ANALOG)FEMALE.
    ANY HELP VERY MUCH APPRECIATED........ SEEMS YOU NEED TO BE ROCKET SCI TO ATTACH A BLOODY PICTURE...SO THIS HAS BEEN BIG WASTE OF FING TIME!

    Quote from: BOBHIGH on 17-December-05, 09:21:31
    Get over it mate !
    I find it easy t read CAPS...and if you dont like it ...DONT READ IT!
    And why bother to reply...some people have nothing better to do.
    Yes there chep and easy to come by...Ive already got a new one.
    All I wanted was to make a diagram of whats inside the bloody thing...it was a simple question and required a simple answer.
    NO NEED TO A WANKA !!
    I feel a bann comming up.
    Have you tryed Google ? really.. your question is inrelevant. No need to reply indeed.
    Why do you come here asking this question anyway ? is it becouse you have a MSI gfx card ? and the adapter has nothing to do with this ?
    You think you can come in here yelling.. thinking we have to put up with it and accept your style of posting. This is not a MSI tech center.. it's a user to user center.. Your question has nothing to do with MSI relavant things anyway's.
    Google = your friend.
    Quote from: BOBHIGH on 17-December-05, 09:21:31
    it was a simple question and required a simple answer
    Simple for who ? you (buying a new one) ? me ? we ?   .really...........
    Quote from: Dynamike on 16-December-05, 04:11:48
    1: There are allot of diffrent types of those adapters.
    If any of the mods have a problem about my reply.. please pm me.

  • Help needed for grouping.

    Hi,
        Help needed .
    I have an internal table having 6 .
    Ex :
    f1     f2    f3     f4    f5    f6
    a     aa    11    p1  10    10
    a     aa    12    p1  20    20
    b     aa    11    p2  30    30
    b     aa    12    p2  40    30
    Now i want to sum the fields f5 and f6 individually and need to display based upon the fields f1 and f4.
    To Display :
    f1     f2    f3     f4    f5    f6
    a     aa    11    p1  30    30.
    b     aa    11    p2  70    60.
    can anyone help me.How to do this..?
    Thanks

    Here you go
    DATA:
      BEGIN OF cur_tab OCCURS 0,
        f1        TYPE c,
        f2(2)     TYPE c,
        f3(2)     TYPE c,
        f4(2)     TYPE c,
        f5(2)     TYPE c,
        f6(2)     TYPE n,
      END OF cur_tab.
    DATA:
      BEGIN OF sum_tab OCCURS 0,
        f1        TYPE c,
        f4(2)     TYPE c,
        f5        TYPE p,
        f6        TYPE p,
      END OF sum_tab.
    DATA:
      BEGIN OF final_tab OCCURS 0,
        f1        TYPE c,
        f2(2)     TYPE c,
        f3(2)     TYPE c,
        f4(2)     TYPE c,
        f5(5)     TYPE c,
        f6(5)     TYPE c,
      END OF final_tab.
    START-OF-SELECTION.
      cur_tab-f1 = 'a'.
      cur_tab-f2 = 'aa'.
      cur_tab-f3 = '11'.
      cur_tab-f4 = 'p1'.
      cur_tab-f5 = '10'.
      cur_tab-f6 = '10'.
      APPEND cur_tab.
      cur_tab-f1 = 'a'.
      cur_tab-f2 = 'aa'.
      cur_tab-f3 = '11'.
      cur_tab-f4 = 'p1'.
      cur_tab-f5 = '20'.
      cur_tab-f6 = '20'.
      APPEND cur_tab.
      cur_tab-f1 = 'b'.
      cur_tab-f2 = 'aa'.
      cur_tab-f3 = '11'.
      cur_tab-f4 = 'p2'.
      cur_tab-f5 = '30'.
      cur_tab-f6 = '30'.
      APPEND cur_tab.
      cur_tab-f1 = 'b'.
      cur_tab-f2 = 'aa'.
      cur_tab-f3 = '11'.
      cur_tab-f4 = 'p2'.
      cur_tab-f5 = '40'.
      cur_tab-f6 = '30'.
      APPEND cur_tab.
      LOOP AT cur_tab.
        MOVE-CORRESPONDING cur_tab TO sum_tab.
        COLLECT sum_tab.
      ENDLOOP.
      LOOP AT sum_tab.
        READ TABLE cur_tab WITH KEY f1 = sum_tab-f1
                                    f4 = sum_tab-f4.
        IF sy-subrc NE 0.
          WRITE:/ 'Something went very wrong'.
          CONTINUE.
        ENDIF.
        MOVE-CORRESPONDING cur_tab TO final_tab.
        MOVE-CORRESPONDING sum_tab TO final_tab.
        APPEND final_tab.
      ENDLOOP.
      LOOP AT final_tab.
        WRITE:/1 final_tab-f1,
              AT 5 final_tab-f2,
              AT 10 final_tab-f3,
              AT 15 final_tab-f4,
              AT 20 final_tab-f5,
              AT 25 final_tab-f6.
      ENDLOOP.
    and the output
    a   aa   11   p1     30   30  
    b   aa   11   p2     70   60  

Maybe you are looking for

  • How to change default Current Flag values for SCD2?

    I'd be curious to find out how to change default Current Flag values for SCD2 (instead of 0/1 to use N/Y) Probably I can change IKM module .... is there another way? Thanks

  • My IPhone 3Gs is in showing everything Photo negative manner.

    My IPhone 3Gs is in showing everything Photo negative manner. How to bring it to normal viewing?

  • Local Area Network Application

    Please I am trying to write a local Area Network Application that would work for an organisation. I intend using RMI to approach it. But I would want to know if RMI approach to network programming as any security issues. Cause i want the application

  • Load Report Failure error

    I have a combobox (windows app c# VS2005 CR XI R2) when I change selection I want the appropriate report to be displayed. It only works first time! If I run in debug mode and break on SelectedIndexChanged and then press F5 to continue it will work, b

  • Providing F4 help for a feld in alv report

    Hi,   I created ALV report.......In tthat report I want to allow the user to edit the field by providing F4 help for that field............ Is there any ways two provide that............will be appreciated. Regards, Naveen M.