Character Status - How to Make a 2D Game in Java #25

preview_player
Показать описание
In this video, we add more detailed player attributes and create a character status screen.
We also create a weapon and a shield as players' equipment.

If you want to use my assets (images/maps/sound) that are used in this tutorial, here's the link:

Guidelines for using Blue Boy Adventure's code and assets:

Thanks for watching.

Timestamps:
0:00 Introduction
0:29 Code correction
3:38 Create character attributes
5:06 Create sword and shield object
8:19 Set player's default stats
14:06 Set a new game state
19:22 Create a frame
21:22 RESULT 1
21:41 Draw status titles
24:50 Draw status values
29:22 RESULT 2
29:28 Draw sword and shield image
32:29 FINAL RESULT
Рекомендации по теме
Комментарии
Автор

hello! i just want to thank you for this series, i have been searching for a tutorial series for making games with java but most suck, i gave up and here i am 4 months later thinking of starting again and i find this amazing tutorial series which is just perfect so that i can learn how to start making games, so seriously, thank you, :)

atanki
Автор

Amazing videos man! Best java tutorial for game development on yt rn!!

leonkennedy
Автор

The best chanell in all YT!!!! Thank you for what you do, really thank you

FerodriEste
Автор

I think it's really cool how you're making a video game, and me and my friend were experimenting with it. I really recommend that you try and change almost everything in the GamePanel class to static, therefore you won't have to have it in the constructor of most of your other classes. It would just make it more practical and simplistic, as well as saving memory and not having a lot of pointers sparced throughout your other classes

miguelflores-acton
Автор

I just want to know how grateful for this tutorial I am this got me into programming. Also for some reason attacking just doesn't work anymore. Thanks!

Edit: Just skip the first section of the video of you have issues.

nicholasbrooks
Автор

Haven't watched it yet but since I am sure it will be great, thank you for the video :)

ganbarimasu
Автор

How do I fix the lack of attacking after the first section?
I imagine something isn't connecting from the KeyEvent to the animation?
Maybe...? *scratches head*

mysticMeddler
Автор

Awesome! Please keep it up ! Love your videos. Hi from Texas :D

jboyle
Автор

This is amazing :D Thank you for this amazing series :)

michajurkiewicz
Автор

Thank you for another great video I'm also making this game watching your video

sonupandey
Автор

Will you ever show us how to draw a subwindow when in the dialogue state to display the NPC's name?

StretchyTime
Автор

The only issue I had was realizing that I cannot close the text box when talking to my npc. Chatgpt can probably help but other than that this was such a big thing I didnt think id get to. Hopefully even with the months off of coding I can still make a good chunk more progress before the end of the year. Loved the vid!

Mypremiumacct
Автор

Hey, so I have it so that the player can increase their health and mana using skill points. What I want to happen, is when the health and mana reach a certain point, I want the symbols for both to have their y/x position to change. I have tried multiple ways to do this, but I can't seem to get it to work, how should I go about doing so?

eldritchkitty
Автор

I think i have made some mistake with my game panel class because I am not able to see the character status screen when i press c, is there anyway I can see your full game panel class?

mr_waddleman
Автор

thx it was amazing video but can you plz show us how to stop camera in the edge of the world in this advanced and adjusted code, and plz how to make player move diag(and add animation to that diag for exp if player press D then S he move diag down and his face look at the left not down)

PixelVearn
Автор

@RyiSnow hello, i havent seen the invetory in this game yet. u wanted to make one in part 2 of the development. Did i miss an episode or r u gonna do it in the future? I were interesting in it, if i could realize it with a database (SQLite).. or do u have another approach?

lexhexao
Автор

How can I end the game when the player life if equal to 0. ?

seckmagal
Автор

Oh also, do you mind exporting your project as an archive file to the google drive? That way we can easily unzip it to get the java files. Me and my friend have been following your channel and we wanted to be able to easily get the code to play around with it. Thank you :)

miguelflores-acton
Автор

Hello i have a problem with the key inputs. When i press the p or c key ie when the game state is changed the pause screen and the player stats screen doesnt show. I played around with it and if i change the key released and put the key inputs of P and C there then the pause screen stays when u press and release P then when you hold P the game un-pauses. This is the same with the C key however when you do it in the normal code nothing comes up. I really need help with is very stuck. Not to sure if you will reply but Thanks for this amazing tutorial!!

bossman
Автор

I love your channel and appreciate your effort. How would you develop arrows, bullets, and so on?

cirillof