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...
Type: Posts; User: mkrage
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...
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...
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...
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
It compiles and runs there the pcituredoesnt show up though instead nothig shows up
No this is just displaying an image the other one is makeing it move and displaying it
I have done that and collision is working its just the circle wont go away
You can shoot the circle but the circle doesn't disapear it just stays there
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?
...
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;
...
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...
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!
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...
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...
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...
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...
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...