It all works well when I run it in NetBeans but when I clean and build it and try to run the Jar nothing happens, why is this happening anyway you can help?
@Williamf1337 Uh if Netbeans is like Eclipse it doesn't extract the image files along with it. Does it open and just not show anything (images). If that's the case you need to manually add the images folder into the .jar through winrar or something else similar.
@letsprogram Yeah I manually added my image folder but it still did not show the images. Is it an issue with the way the class files call on the images because I know in netbeans I have the class files in a source folder and then images in an image folder in the same folder the source folder is in, not the one the class files are in. Could it be that it can't find the directory or? :\
@Williamf1337 Haven't worked too much with Jars, but it must be an issue with the directory and the way files inside a jar are run differently. I'd have to research before I will be able to help you out.
I cant figure out what I did wrong. I did exactly what you did but whenever i shoot the other player, the bullet just passes through them and then nothing happens. Its like, i can hit the other player but no health is subtracted. I think I havent set a certain health like 10 or 20. Can someone explain how to do that.
Well that's how it would go inside of this game here. You would just increase deltaX, you could add a speed variable and include that into the movement. Something like, deltaX * speed
AwesOme Bro.....!
john73768 7 months ago
It all works well when I run it in NetBeans but when I clean and build it and try to run the Jar nothing happens, why is this happening anyway you can help?
Williamf1337 1 year ago
@Williamf1337 Uh if Netbeans is like Eclipse it doesn't extract the image files along with it. Does it open and just not show anything (images). If that's the case you need to manually add the images folder into the .jar through winrar or something else similar.
letsprogram 1 year ago
@letsprogram Yeah I manually added my image folder but it still did not show the images. Is it an issue with the way the class files call on the images because I know in netbeans I have the class files in a source folder and then images in an image folder in the same folder the source folder is in, not the one the class files are in. Could it be that it can't find the directory or? :\
Williamf1337 1 year ago
@Williamf1337 Haven't worked too much with Jars, but it must be an issue with the directory and the way files inside a jar are run differently. I'd have to research before I will be able to help you out.
letsprogram 1 year ago
I cant figure out what I did wrong. I did exactly what you did but whenever i shoot the other player, the bullet just passes through them and then nothing happens. Its like, i can hit the other player but no health is subtracted. I think I havent set a certain health like 10 or 20. Can someone explain how to do that.
osucowboyzwrestler 1 year ago
lol, you published this vid on my birthday last year. xD
konoha1993 1 year ago
@konoha1993 It was defiantly a birthday present! Enjoy.
letsprogram 1 year ago
Thanks nice tutorial
but how do I make the bullet go fatser?
and dont tell me to incress deltaX..
RelWes 2 years ago
Well that's how it would go inside of this game here. You would just increase deltaX, you could add a speed variable and include that into the movement. Something like, deltaX * speed
letsprogram 2 years ago
Going to follow this tutorial =D
thefifthgate 2 years ago
Great to hear :)
letsprogram 2 years ago