Search:

Type: Posts; User: mkrage

Search: Search took 0.18 seconds.

  1. Replies
    6
    Views
    507

    Why won't this image display?

    ok so I am making a copy of the famous game Galaga (or trying to) and I want to replace the rectangle I put as your ship to a image that I made in photshop. Everything in this program works except...
  2. Replies
    0
    Views
    372

    Can't get this image to appear!

    So I am trying to make an image appear on the screen in a paint method in a JFrame using a image named Ship.
    I used the command g.drawImage(Image, x, y, ImageObserver) and made it say...
  3. Can't seem to get this image to be displayed!

    Ok so I am trying to make galaga and I have this spaceship image saved into a .png file and want to display it as what you are moving. Previously I had the ship as a rectangle that moved left and...
  4. Replies
    6
    Views
    289

    Re: Can't make this circle disapear!

    Ohhh so i need == instead of = Ok thanks now all i mee to know is how to tell it to unpaint itself or something like that
  5. Replies
    2
    Views
    267

    Re: Image won't work!

    It compiles and runs there the pcituredoesnt show up though instead nothig shows up
  6. Re: Does anyone know how to display an image from a file on your screen?

    No this is just displaying an image the other one is makeing it move and displaying it
  7. Replies
    6
    Views
    289

    Re: Can't make this circle disapear!

    I have done that and collision is working its just the circle wont go away
  8. Replies
    6
    Views
    289

    Re: Can't make this circle disapear!

    You can shoot the circle but the circle doesn't disapear it just stays there
  9. Replies
    6
    Views
    289

    Can't make this circle disapear!

    I am trying to make it so when you shoot a circle it disapears but I can't seem to get it to work!
    Most of what relates to the circle disapearing is at the bottom.
    Can you find my mistake?
    ...
  10. Replies
    2
    Views
    267

    Image won't work!

    I am trying to get an image to appear as what you are moving but it won't work!
    I am not good at image stuff and have no experience with it so if someone does please help me!
    package galaga;
    ...
  11. Does anyone know how to display an image from a file on your screen?

    I am making a game and am tired of jsut using shapes such as rectangles and other things. Does anyone know how to put in your own files as images onto a JFrame? If you do then please teach me how...
  12. Replies
    6
    Views
    929

    Re: Why isn't this rectangle moving?

    Yes thank you so much! I now have a moving rectangle! I now understand what you have to do to initialize and how you must use repaint! Thank you so much!
  13. Replies
    6
    Views
    929

    Re: Why isn't this rectangle moving?

    Ok first of all thank you for your help. Second its better if I draw on a JPanel an add it on and i am not familiar with key bindings and how they work! If you could tell a brief explanation on how...
  14. Replies
    6
    Views
    929

    Re: Why isn't this rectangle moving?

    Ok for number 1 do i put repaint() (redraw() didnt work) inside the keylistener or where do i put it?
    And for number 2 idk what u mean by initialize x. Does that just mean do x=150 in the paint or...
  15. Replies
    6
    Views
    929

    Why isn't this rectangle moving?

    Ok so I am trying to make a galaga game and I'm not getting very far at all. I just tried to make a rectangle be the spaceship and have you able to move it left and right, but it won't work. I...
  16. Re: Can Someone please help me with my password program?

    Dear jps,
    What is wrong with correcting code? He is clearly just trying to help me and i appreciate that but now i can't see it cuz it was removed! I am not familiar with the .equals() method and do...
  17. Can Someone please help me with my password program?

    I am trying to make a program in its own JFrame that has a JPasswordField that you type in something and it checks to see if its the password. Also there are two hint buttons next to the password...
Results 1 to 17 of 17