Java Game Programming for Beginners - #11 - Shooting a Bullet
Uploader Comments (TheJavaHub)
All Comments (21)
-
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.)
-
how would i make an enemy and then to make it disappear when the bullet hits
-
With regards to programming 2d/2.5d games, what would you suggest? C++ or Java?
-
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 ;)
-
Can i still enter the logo compassion?
-
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.
-
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!
My bullet won't move at all.
Thelordberzerker97 5 months ago
@Thelordberzerker97 Did you copy the tutorial exactly?
TheJavaHub 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 6 months ago
@Ninjason1337 I'm just starting to make C++ tutorials, it doesn't mean I'll stop these ones :)
TheJavaHub 6 months ago