also: if your bullets don't move the most obvious solution would be to check if somewhere you've put by instead of bullet.y(I had this issue, and noticed I had the x and y of the fillRect set to by, and bx instead of their bullet alternatives.)
I don't know why, but the bullet keeps freeking out- it will dissapear randomly and start again at the gun, occasionally fires when I hit left or right, sometimes refuses to fire at all.
My game windows doesn't open at all! I open the program in NetBeans, then i right-click and choose run file. It says Build sucsessful, but nothing opens. Plz help me!
I have a problem with the space released part. The program doesn't seem to want to put readyToFire to true since I can't refire the bullet. I think the problem lies with the bullet not being reset to (0,0,0,0) since I tried by putting if(y<=20). That would mean it would dissapear in the middle of the screen right? but it won't so you got any idea what the problem might be?
@NightShroud092 Hmm, it's hard to say at the moment. Head over to TheJavaHub Forums @thejavahub(dot)net/forums and post your source code in the help section. I'm sure we can help you from there.
are you ever going to finish this game?
also: if your bullets don't move the most obvious solution would be to check if somewhere you've put by instead of bullet.y(I had this issue, and noticed I had the x and y of the fillRect set to by, and bx instead of their bullet alternatives.)
stupinator 1 week ago
how would i make an enemy and then to make it disappear when the bullet hits
winter1171 2 weeks ago
With regards to programming 2d/2.5d games, what would you suggest? C++ or Java?
AngelDouche66 2 weeks ago
The copying off your website is confusing... Are we supposed to call the file "Main.java", as the forum says, or "Shoot.java", as your NetBeans says?
Btw.., really nice tutorial ;)
joach0412 2 weeks ago
Comment removed
joach0412 2 weeks ago
Can i still enter the logo compassion?
McClover 2 weeks ago
Comment removed
McClover 2 weeks ago
Comment removed
McClover 2 weeks ago
oh my GOD this is glitchy.
I don't know why, but the bullet keeps freeking out- it will dissapear randomly and start again at the gun, occasionally fires when I hit left or right, sometimes refuses to fire at all.
006ruler 2 months ago
My game windows doesn't open at all! I open the program in NetBeans, then i right-click and choose run file. It says Build sucsessful, but nothing opens. Plz help me!
kaurpalang9 4 months ago
Comment removed
kaurpalang9 4 months ago
Comment removed
AngelDouche66 5 months ago
My bullet won't move at all.
Thelordberzerker97 6 months ago
@Thelordberzerker97 Did you copy the tutorial exactly?
TheJavaHub 6 months ago
@Thelordberzerker97 add this line of code: s1.shoot(); // inside the paintComponent() method of the shoot.java.
AnnaGaiel 5 months ago
I have a problem with the space released part. The program doesn't seem to want to put readyToFire to true since I can't refire the bullet. I think the problem lies with the bullet not being reset to (0,0,0,0) since I tried by putting if(y<=20). That would mean it would dissapear in the middle of the screen right? but it won't so you got any idea what the problem might be?
sorry for the bad english.
NightShroud092 6 months ago
@NightShroud092 Hmm, it's hard to say at the moment. Head over to TheJavaHub Forums @thejavahub(dot)net/forums and post your source code in the help section. I'm sure we can help you from there.
TheJavaHub 6 months ago
thx man but your starting c++ already?
Ninjason1337 7 months ago
@Ninjason1337 I'm just starting to make C++ tutorials, it doesn't mean I'll stop these ones :)
TheJavaHub 7 months ago
Comment removed
Ninjason1337 7 months ago