Added: 1 year ago
From: MrJavaHelp
Views: 11,158
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (34)

Sign In or Sign Up now to post a comment!
  • Nice thx

  • 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)

  • MY ENEMY WONT MOVE LEFT, im not doing a scrolling background

  • Around 3:53, learn to scroll down!

  • 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!

  • where is the game?Why no postin a result?

  • 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

  • public Enemy LOL

  • 11:40 for demonic voice.

  • download animation shop

  • Please respond how do you kill the ghosts

  • @Thelordberzerker97 Make rectangles for the bullets and enemies and do if(character.rect.intersects(g­host.rect)){

    array.remove(ghost);

    }

    Roughly, I'm just guessing that's what he'd do.

  • @Thelordberzerker97 *Cough*lookatthenexttutroialwi­thcollisiondetection*cough*

  • @Thelordberzerker97 collision detection

  • 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 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. 

  • @ColumboJedi make a gif

  • @geronimoaris I do not think that is the "elegant" solution for that...

  • @xxxcoolboyxxx its the best way... get animation shop

  • if en.x = p.x then collison :P

  • holy shit thanks for the tutorial

  • 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

    yea same here

  • @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 might work

  • 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.

  • 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?

    great video!

  • @liorlolobobo and : why do you write : if (ex.Alive==true) and not : if (ex.Alive) ?

  • @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

  • nice uploade but to late thou :(

  • 2nd

  • Can you make a tutorial on how I can make a webclient from this?

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more