Your the first person to actually create a full game in java on you tube. thanks for this!
@sorcerian_bootleg71123 жыл бұрын
Seeing a new video of this series makes me happy! Thanks so much for your work!
@RyiSnow3 жыл бұрын
You're welcome!
@garciajushua7242 ай бұрын
you are amazing bro, i have been watching your videos for some time now, and I learned so much from creating a class, package, and how you make the class work together to make the whole game work! cant wait to see further ahead. you are the best teacher when it comes to this. thanks
@Gnarkson3 жыл бұрын
Your channel is just amazing! Please, proceed with your work!
@kanadmeshram92884 ай бұрын
Hey RyiSnow, Your channel and tutorials have been a great help for me to learn java. Thank you very much for your kind efforts. I have also edited the Title Screen a bit where instead of displaying the player image, i show the player moving from left to right until it hits the screen. I am further going to edit it more to make it more catchy and beautiful, but all of this has only been possible because of your tutorials. Thank you very much!!
@taggigtrep3 жыл бұрын
Thank you so much for this series, I've had a lot of fun with this the last few days.
@nadinewalter-lang93338 ай бұрын
Your tutorials need more attention!
@ganbarimasu94463 жыл бұрын
I often forget to like the videos. But for your videos I try to like them again and again after forgetting I already did. You're doing a great job, keep going :)
@adnan2734 Жыл бұрын
These tutorials are incredible!
@moinofriend_yt143010 ай бұрын
Youre a legend!
@guitar_allstar Жыл бұрын
Best tuts I've seen on youtube in years! I've encountered a fairly inconsequential UI bug... when I'm in Character Select and go Back to Title screen the small > (greater than) sign we use to highlight menu items doesn't appear until you press S or W again. I'm sure if I put some thought into it I could figure it out, and I'm sure I wrote this bug myself somewhere and it's not your fault at all. I had to fix a few Null pointer exceptions throughout this video which taught me a lot too.
@editusername25094 ай бұрын
It's not your fault that the UI was bugged, that's how it was programmed. If you set gp.ui.commandNum = 0; when you hit the back button then it goes back automatically.
@joaovitordutragarcia48853 жыл бұрын
Omg, thank you so much Ryi, u helped me a lot!
@RyiSnow3 жыл бұрын
Glad to hear that!
@dewaari34422 ай бұрын
Thank you for helping with my exam
@zmandyce2 жыл бұрын
Tip: add gamePanel.stopMusic(); to the back button on character selection screen. As to avoid multiple instances of music starting and playing over each other.
@ParalyticAngel10 ай бұрын
Dude, you are amazing.^^ Your series was really helpful so far and there are a lot of vids to go.^^ I guess when we are trough with it, we are selling AAA-Games like no other.^^ 🤣🤣🤣🤣🤣
@cedricsahaghian1605 Жыл бұрын
Thanks for everything!
@cubomusic66593 жыл бұрын
Nice ! I love your video.
@evandiaz68242 жыл бұрын
can anyone help me, i dunno why this happened, but my keyHandler seems kinda a bit bug. "W" and "S" button for title screen works totally fine, but the "Enter" button didnt work at all. And also when i change to playState, all of the button didnt work at all, so the character just stands there, anyone have idea?
@dcwavie Жыл бұрын
tis times eps was so easy to understand especially te keyhandler part
@orionmont-dragon5844 Жыл бұрын
Yooo i fuck up right there can you help ne please ?
@luciuscouto45922 жыл бұрын
How could I put a type of scrollbar if the number of options exceeds a limit?
@Redstoneprojrjr3 жыл бұрын
Very nice
@ackoly_dude44955 ай бұрын
i need help with the game menu, everytime i press enter it wont work and i cant fix it can you help?
@Yung_yayy2 жыл бұрын
Hello Ryisnow, I have a question. I just added this titleScreen, but now when i start game my movement doesn’t work
@ThomasAgner11 ай бұрын
I have the same problem, did you solve it?
@_Em_Branco4 ай бұрын
i know this is old, but is there a way to create a button that you can click, JButton i think, for the menu instead? and another container/panel for that buttons.
@ThomasAgner11 ай бұрын
I can't move my character after adding the class selection screen
@dakotamarquez4633 жыл бұрын
First of all, thank you for making this series RyiSnow, I cannot express how much it has helped me! I have a question in regard to audio. I'd like for the title screen to have it's own audio and then go to the play audio when the player gets past the title screen. The problem is that the audio from the title screen continues to play after the player gets to the play screen. Then, both the title screen music and play music play at the same time. Almost like the music.stop() method is not working. I even set it to stop the music when the player hits pause, but nothing. Could you check to see if it is an error on my end? For reference, I called the music methods in the KeyHandler class. Also, if i call the music.stop() method right after music.play() method it works, but obviously the music never gets played because it was stopped right after it was started.
@RyiSnow3 жыл бұрын
You need to call the stopMusic() before calling the playMusic(index). I tested in my environment and it worked fine. When I pressed the start button, the title screen music stopped and the play music started.
@dakotamarquez4633 жыл бұрын
@@RyiSnow It works, thank you!
@havardelgsaas26032 жыл бұрын
If you want to play music in the title screen that doesn't overlap with the game music, you can write gp.stopMusic() and then gp.playMusic(something else than the music used in the title screen): if(code == KeyEvent.VK_ENTER){ if(gp.ui.commandNum == 0){ gp.gameState = gp.playState; gp.stopMusic(); gp.playMusic(0); } if(gp.ui.commandNum == 1){ //add later } if(gp.ui.commandNum == 2){ System.exit(0); } }
@dcwavie Жыл бұрын
lol thanks bro i was wondering
@dcwavie Жыл бұрын
btw guys u should change playMusic in gamepanel and put the song u want on te menu
@2MSTennis2 жыл бұрын
Any idea on how to stop the music and play another from the Array? Cheers!
@maek0s4 ай бұрын
Hi, I have one question, its possible to do all about map, npcs with your method and screens like title screen or another screen with JavaFX in a .xml, I was working with that for a problem and I don't know how to merge all. Thank you so much for this content!
@luciuscouto45922 жыл бұрын
I have a subscreen of the title that changes the language, a variable called language that defaults to English and also where there are texts that are printed on the screen, I have a conditional for example: if(gp.language == "english) { name = "Key; } else if( gp.language == "portuguese" { ... } however when I click on new game the texts do not change, they remain in English, how do I change the language?
@hillclimbracingcenter10 ай бұрын
save the data in a separate file, as shown in episode 36 or 50
@diegofourstage2 жыл бұрын
One question, all the extra modifications in the following movies they are kept thank you very much !
@Mypremiumacct7 ай бұрын
Is there a reason you copy and paste things into the } as opposed to just move the }? other than that great vid! I just have been deleting the bracket and placing it where it should go, thugh I can see it would be different when moving it to a totally different place
@LorneBrewer2222 жыл бұрын
For some reason my cursor doesn't disappear after moving down, If I move down there is a cursor on all three lines and I have no idea how to fix it. Any help would be greatly appreciated.
@nistorflorin76302 жыл бұрын
Hi RyiSnow, love the videos, thank you I wanted to add to my main menu a video on the background, representing the game, makes it feel better than just a simple color, but it seems I can't find a way to implement that, is there any way you could help me with that? Thank you!
@sydhkl32323 жыл бұрын
I played a different music in the title screen state and wanted to play a different music in play state, but somehow i can't make use of the stopMusic function to stop titlescreen music from being played during game state, so i currently have both music playing concurrently in playstate any help? :d
@francais197Ай бұрын
i had playState = titleState in the GamePanel class, instead of gameState = titleState under the public void setupgame in gamePanel class , hope that helps .........
@jamesscott5333 Жыл бұрын
Any one no how i would implement a charachter selection screen that upon enter the game brings a different character
@luciuscouto45922 жыл бұрын
How could I put a background image on the title screen instead of the color?
@RyiSnow2 жыл бұрын
You can draw images with g2.drawImage
@luciuscouto45922 жыл бұрын
@@RyiSnow Is this the best way or is there a better way? BufferedImage Image; try { image = ImageIO.read(getClass().getResourceAsStream("/tiles/water03.png")); g2.drawImage(image, 0, 0, gp.screenWidth, gp.screenHeight, null); } catch(IOException e) { e.printStackTrace(); }
@RyiSnow2 жыл бұрын
Don't import the image inside of the game loop otherwise, it imports the image 60 times per second and that is a waste of resources. I would prepare the image in the constructor or a method that is processed before the game thread starts.
@luciuscouto45922 жыл бұрын
@@RyiSnow I imported the image in the drawTitleScreen method
@bastien_creepyvenger Жыл бұрын
How could we display a tile image (like grass01 or water01) as the background of the title screen instead if a color ?
@RyiSnow Жыл бұрын
You can use the drawImage method!
@bastien_creepyvenger Жыл бұрын
@@RyiSnow thank you so much!
@MrLoser-ks2xn2 жыл бұрын
Thanks!
@qetqetqtzccvqdsioeiq2 жыл бұрын
Those videos are literally my brain savior, thank you so much. But, maybe its in the next episodes (forgive me if it is). Is there any chance there is or will you do a tutorial how to interact with NPC's without needing to move? In the dialogue episode you thought in an amazing way how to program the system, but to interact with NPC I consistently need to move. Is there any option to interact without the need to move?
@RyiSnow2 жыл бұрын
Yeah, that was a bit inconvenient so I fixed it in Part 23. No need to press directional keys to talk to him!
@kimabram Жыл бұрын
I have a question sir, following your code, the getplayerimage method starts at the very beginning. How can I change the appearance of the character in character selection if the getplayerimage method run so early before character select?
@kimabram Жыл бұрын
I already use if else statement in the getplayerimage method and made variable name character = 0 in the keyhandler so when the user choose character, the character variable value will be changed into 0, 1, 2, 3 then following the if else statement in getplayerimage method. But the problem is the getplayerimage method runs at the beginning before titlescreen or character select screen.
@kienletrung4692 жыл бұрын
Hi RyiSnow! I wonder how to create another character to play. Could you suggest a way to do that? Thanks
@shedowtnt152 Жыл бұрын
Hello, ive really enjoyed your tutorials, right now im trying to add a side panel to the game where player information is displayed, can anyone tell me how to do this?
@orionmont-dragon5844 Жыл бұрын
Sorry every body, but i got a issue. The little ">" in the title menu do not work, but it work if I change the size of my window. Like I need to press w and go in full screen and then thw little ">" change is place 💁♂️...
@orionmont-dragon5844 Жыл бұрын
Bruhhh😑...
@orionmont-dragon5844 Жыл бұрын
Never mind 😅...
@lamekhgt52443 жыл бұрын
Hello i find a problem with ur tutorial, so basically i have implement the stop edge camera for the player. But if my player is at the edge and there is a npc there, the npc will move according to our opposite move because of int screenX = worldX - gp.player.worldX + gp.player.screenX; int screenY = worldY - gp.player.worldY + gp.player.screenY; can you help me to solve this problem ? Thank you
@RyiSnow3 жыл бұрын
Thanks for the report. I just posted the fix in community tab so pls take a look! kzbin.infocommunity
@lamekhgt52443 жыл бұрын
Okeee ty for ur hard work i will try it now. Thank you
@agentcheplaystationvspc24682 жыл бұрын
Good afternoon. There is a question about the start menu, after clicking on a new game, I wanted to make a class selection. Created several more types in the entity class, such as warrior, mage and thief. Accordingly, when selecting the magician class in the menu, I would like to assign the type of magician to the player and, depending on the choice, load the default settings of the player corresponding to his class. But the problem is that when the game starts, the default values are already loaded and they cannot be changed : ( Tell me an option to change the default settings of the player. And yes, sorry for my English :D
@RyiSnow2 жыл бұрын
There are a number of ways to do that. You can prepare multiple default values and call them based on the class that you have selected.
@dustinodett9 ай бұрын
@@RyiSnow I have tried everything I can think of to do this. I have created seperate player classes, created seperate methods, used the commandNum we set in keyhandler class and no matter what I change I cannot get the seperate classes to draw to the screen. They are there, they have collision and I can move them I just can't see them. Any help would be appreciated. And yes after two years I am still learning from these videos!!!!
@colbycampbell41155 күн бұрын
@@dustinodett did you figure it out?
@artin55253 жыл бұрын
Thank you for sharing your knowledge , i have a question is possible to add multi player option to online play 👍.
@RyiSnow3 жыл бұрын
I think it's possible if you have enough server knowledge!
@Medievu Жыл бұрын
A question! How can I change the Fonts to be different from the Title Name and the Menu? Thanks for all your videos! I've been learning a lot and I'll try to keep understanding everything about this. I would love to make my first game on Java, then maybe I'll explore other languages. THANKS AGAIN FOR EVERYTHING!
@RyiSnow Жыл бұрын
You can set a font on g2 by typing: g2.setFont(fontname). Check Part 16 video for the details!
@kazeki31353 жыл бұрын
Can i ask if you will implement the Restart function next?
@RyiSnow3 жыл бұрын
We will handle that when we implement a game over screen.
@clovercandii3 жыл бұрын
hello, i found that this game worked very well when downloading as a jar and sending it to friends until i added a title screen and the other intro screens, do you know why? the key functions work, except that it doesn't register on the game screen until i minimize then maximize the screen again. For example, if I click enter to get to the next screen, it "works" but doesn't show up until i minimize then maximize. Also, my player is gone entirely and I cannot move. Here are things that I can think of that I did differently from you if your exported jar works fine: Added a few extra objects Added randomized order for dialogue Added 3 intro screens including images and text I tried commenting out things that I thought might have impacted it, like extra images i put in the intro screens, the title screen entirely, and it still didn't work. Any idea why it doesn't work if I export it to a jar?
@clovercandii3 жыл бұрын
the last time i exported it was before the npcs i think, if that helps.
@RyiSnow3 жыл бұрын
I see. Yeah sometimes what worked on IDE doesn't work when exported as a Jar. I have experienced a similar thing before. By the way, does the Jar still work in your environment?
@clovercandii3 жыл бұрын
@@RyiSnow i am not sure what that means, i'm assuming you mean when i click the play button in my ide, in which case yes it does work. also i use intellij if that helps!
@RyiSnow3 жыл бұрын
No I mean, when you click the jar file (without using IDE), can you still play the game normally?
@clovercandii3 жыл бұрын
@@RyiSnow no, if i open the jar i downloaded it does not work, sorry if that is not what you mean
@PotatoChips12232 жыл бұрын
do we have to add the character class screen to implement future functions like projectiles and sword? or is it just a complete sample just to get us thinking
@RyiSnow2 жыл бұрын
It's just a sample so you don't really need to add that part if it's not necessary for you.
@blackholeschanel87132 жыл бұрын
May i have your source code? please
@MrLoser-ks2xn Жыл бұрын
🥰🥰🥰
@syuik3 жыл бұрын
Will you go over crafting and building?
@taiga682 ай бұрын
10:21 the math aint mathing
@vipmember33152 жыл бұрын
Solved my last problem... but now.... the problem is... on the extra screen, the letters on the last 3 lines look black. not white. problem!!! Solution??
@JacobBohley Жыл бұрын
If anybody wants I made a simplified method for making already shadowed lines: public void drawShadowedLine(String text, int x, int y, int shadowWidth, int shadowHeight, Color textColor, Color shadowColor) { x += shadowWidth; y += shadowHeight; g2.setColor(shadowColor); g2.drawString(text, x, y); x -= shadowWidth; y -= shadowHeight; g2.setColor(textColor); g2.drawString(text, x, y); } //////////////////////////////////////////////
@cameronsmith18072 жыл бұрын
I can’t pause the game for some reason now. I have it as gamesState = gp.pauseState;