Search:

Type: Posts; User: joelmeler

Search: Search took 0.11 seconds.

  1. please help? simple fix that someone who knows bout java can prolly help me

    im making kind of like a shooting game where u have a rectangle on side of the screen and they shoot each other, im trying to make one fo the rectangles move up with the letter 'o' but it doesnt seem...
  2. HI, could someone please tell me why my code doesnt work?

    I wanna make the circle move up, heres the code:


    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.ImageObserver;
    import...
  3. Replies
    14
    Views
    1,919

    Re: How can i add an image into my source code?

    i guess i have a lot of the needed ones
  4. Replies
    14
    Views
    1,919

    Re: How can i add an image into my source code?

    help please?
  5. Replies
    14
    Views
    1,919

    Re: How can i add an image into my source code?

    yeah u were right

    i have this now

    Image img=null;
    try
    {
    img=ImageIO.read(new File("Leftp2.png"));

    }
  6. Replies
    14
    Views
    1,919

    Re: How can i add an image into my source code?

    i do, dont i?
  7. Replies
    14
    Views
    1,919

    Re: How can i add an image into my source code?

    g.drawImage(img,p2.x,p2.y,this);
  8. Replies
    14
    Views
    1,919

    Re: How can i add an image into my source code?

    Image img=null;
    try
    {
    img=ImageIO.read(new File("Leftp2.png");
    catch(IOException e)

    }

    if(p2Direction==LEFT)
    g.drawImage(img,p2.x,p2.y,this)
  9. Replies
    14
    Views
    1,919

    Re: How can i add an image into my source code?

    yeah i already tried different ways with the ImageIO tool and none have worked culd u help me?
  10. Replies
    14
    Views
    1,919

    How can i add an image into my source code?

    this is a racing game and i want the picture to take place for my "square cars". thanks, heres the code, everything works fine, i just wanna add the pics.

    import javax.swing.*;
    import...
  11. Re: Need help with this code urgent please, i appreciate it.

    thats not a problem i tried it already but thanks. i added some brackets i was missing and got down to 10 errors, the ones bothering me right now are the "try without catch" and i have no clue on...
  12. Need help with this code urgent please, i appreciate it.

    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;

    public class GameRace extends JFrame
    {

    final int WIDTH = 900, HEIGHT = 650;
  13. Replies
    3
    Views
    1,216

    Re: Please need help with this code, please!!

    other than the WITHD, i fixed it still doesnt work
  14. Replies
    3
    Views
    1,216

    Please need help with this code, please!!

    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;

    public class Game1 extends JFrame {

    final int WITHD = 900, HEIGHT = 650;

    Rectangle left...
Results 1 to 14 of 14