Hey, when you press and hold VK_SPACEBAR, you can spam shoot it, can you do another video giving us the code for a JAVA SLEEP for it please? please, THUMBS UP TO LET THEM HEAR THIS!
Hi there Mr java . I just want to know how make image with transparent backgrounds in java. I am trying to make a game with my own images and am facing this problem. Any suggestion please email me to elpablon@yahoo.com
@ColumboJedi You can loop images while the character is moving. Mario I think has something like 8 different pictures while he moves, so that would loop until he stopped and return to the normal, stand still image.
hey i followed all you videos and it worked like a charm but i was wondering if you could make a video (if you had the time) or explain how i could add a platform and blocks. If you could that would be great.
@TheGameguy132 I have no idea if it would work, I'm not good at this, but maybe if you use his collision detection code you could set the "floor level" to whatever the collision is at, if you collide with certain blocks that is. No idea if it would work but it might :P
Great tutorial, But, some how from section to section the code seems to be different than what I pulled from the videos. For instance. at the end of the last video, I was unable to jump and shoot. Now, in this one you are jumping and shooting. Also you are referring to a getdx and I don't have a getdx I just have getx. Where can I get the code to review? thank you.
isn't it better to make an Array\Linked-List to store all of the enemies? becuase making so many objects of enemies is bad-coding.. what if you want 100 enemies?
@liorlolobobo That REALLY does not make a world of difference, the two statements are equivalent.
As for using a linked list to store enemies (an array is the same thing as linked list theoretically), I only had two enemies so I just made 2 objects for illustration purposes, but if I were to make a full game, then, yes, I would have used an array (or ArrayList) to store all the enemies. And remove from ArrayList once the enemy is dead (to save memory). Hope this helps.
Nice thx
xxxcoolboyxxx 4 days ago
Don't get me wrong, these guides helps a lot to get into game programming, but you repeat the same figures over and over and misplace a lot of code.
Instead of calling for the image path twice in Board for the enemies, why not call for it once in the enemy class?
Instead of writing the numbers over and over for the image positions (this goes for all images), why not create a variable for each?
Also, if you're using shortcode in if's, why not do the same for bools? if(x) instead of if(x==true)
morphman86 3 weeks ago
MY ENEMY WONT MOVE LEFT, im not doing a scrolling background
308728823 4 weeks ago
Around 3:53, learn to scroll down!
Stormrage32 1 month ago in playlist More videos from MrJavaHelp
Hey, when you press and hold VK_SPACEBAR, you can spam shoot it, can you do another video giving us the code for a JAVA SLEEP for it please? please, THUMBS UP TO LET THEM HEAR THIS!
Quanose1 1 month ago
where is the game?Why no postin a result?
andrej10001 1 month ago
Hi there Mr java . I just want to know how make image with transparent backgrounds in java. I am trying to make a game with my own images and am facing this problem. Any suggestion please email me to elpablon@yahoo.com
pablicjenkov 1 month ago
public Enemy LOL
nomnomgiggity 3 months ago 3
11:40 for demonic voice.
HDStaticz 3 months ago 6
download animation shop
geronimoaris 4 months ago
Please respond how do you kill the ghosts
Thelordberzerker97 5 months ago
@Thelordberzerker97 Make rectangles for the bullets and enemies and do if(character.rect.intersects(ghost.rect)){
array.remove(ghost);
}
Roughly, I'm just guessing that's what he'd do.
Haroids 5 months ago in playlist Java Game Programming: 2D Side Scroller
@Thelordberzerker97 *Cough*lookatthenexttutroialwithcollisiondetection*cough*
Serebii10123450 3 months ago
@Thelordberzerker97 collision detection
Williaml9518 1 month ago in playlist More videos from MrJavaHelp
Hi. if you read this. pls reply
So, I have the DUDE...but I want to make an animation for his legs ...
like when you walk, his legs move..left to right...
where do I start _? I am trying to remake an old NES game, realy basic game,
but that a DUDE has motion... xD
tnks
ColumboJedi 5 months ago
@ColumboJedi You can loop images while the character is moving. Mario I think has something like 8 different pictures while he moves, so that would loop until he stopped and return to the normal, stand still image.
Wilson1592 5 months ago
@ColumboJedi make a gif
geronimoaris 5 months ago
@geronimoaris I do not think that is the "elegant" solution for that...
xxxcoolboyxxx 4 months ago
@xxxcoolboyxxx its the best way... get animation shop
geronimoaris 4 months ago
if en.x = p.x then collison :P
lilwarthog 7 months ago
holy shit thanks for the tutorial
killerboduk999 7 months ago
hey i followed all you videos and it worked like a charm but i was wondering if you could make a video (if you had the time) or explain how i could add a platform and blocks. If you could that would be great.
TheGameguy132 10 months ago
@TheGameguy132
yea same here
jacobpercs 9 months ago
@TheGameguy132 I have no idea if it would work, I'm not good at this, but maybe if you use his collision detection code you could set the "floor level" to whatever the collision is at, if you collide with certain blocks that is. No idea if it would work but it might :P
MegaTrekant 9 months ago
@MegaTrekant might work
TheGameguy132 9 months ago
figured out the getdx. on the dude. I need to return the getdx like the getx. I must have missed that is the dude video.
stygiostergmail 1 year ago
Great tutorial, But, some how from section to section the code seems to be different than what I pulled from the videos. For instance. at the end of the last video, I was unable to jump and shoot. Now, in this one you are jumping and shooting. Also you are referring to a getdx and I don't have a getdx I just have getx. Where can I get the code to review? thank you.
stygiostergmail 1 year ago
isn't it better to make an Array\Linked-List to store all of the enemies? becuase making so many objects of enemies is bad-coding.. what if you want 100 enemies?
great video!
liorlolobobo 1 year ago
@liorlolobobo and : why do you write : if (ex.Alive==true) and not : if (ex.Alive) ?
liorlolobobo 1 year ago
@liorlolobobo That REALLY does not make a world of difference, the two statements are equivalent.
As for using a linked list to store enemies (an array is the same thing as linked list theoretically), I only had two enemies so I just made 2 objects for illustration purposes, but if I were to make a full game, then, yes, I would have used an array (or ArrayList) to store all the enemies. And remove from ArrayList once the enemy is dead (to save memory). Hope this helps.
-MrJavaHelp
MrJavaHelp 1 year ago
nice uploade but to late thou :(
jorreerroj 1 year ago
2nd
MrBagamen 1 year ago
Can you make a tutorial on how I can make a webclient from this?
PrinceProStudio 1 year ago