When the cursor moved, I immediately thought, "Oooo, I should make a Frogger game!" haha This is one of my fav vids, so far, in this series! Keep up the great work! :)
Hey Christer, it's nice that you are working with Ruby on Rails. That's a pretty popular framework, especially in Japan. You can come back to Java any time. For now, good luck on your Rails project!
Hey, Ryi thanks for your dedication as always! I noticed something weird at 18:22, while you were changing the item's size. Look at the old man sprite while changing sizes. I'm not sure if it changes its size or its y position, but the changes in the inventory also affects him. Also i was wondering how to stack items on a single inventory slot (up to a certain quantity). For example, you can have up to 3 keys in the same slot because they're small. Hope you're doing well! Take care! :D
About the old man, it's just his y position is different. I used two game windows (the previously opened program and the current one) for comparison. The Window's bottom bar is hidden in the video so it might look a bit confusing but I was switching between two windows to see the difference :P For stacking items, you can add "amount" variable to the Entity. So when you pick up an item that you already have, you can add 1 to the amount instead of using another slot.
Hi RyiSnow, great video as always! I was wondering, how would you make it so that the description subwindow disappears if the cursor is hovering over a blank slot (meaning there is no item in that slot). Thank you!
Put drawSubWindow(dFrameX,dFrameY,dFrameWidth,dFrameHeight) in the itemIndex if statement then the window only shows up when you are selecting an item. Actually this is a neat idea so I will update my code as well. Thank you for the question.
Hey! I'm on the 12th video (tileset), did everything exactly as you did and when I run my program, I can't move, music's not starting, counting not starting etc. Any help? Thanks
Most likely something is wrong in the getTileIMage method since that's the only thing we changed in that video so that's where you need to check. Also, if you have a question regarding a specific video, could you post a comment on that video? It would be easier for me to track the issue and the thread can be a useful reference for future viewers. Usually I don't respond to questions that are unrelated to the video so I hope you understand. And please don't post the same comment multiple times. You can get flagged as a potential spammer by RUclips and it's possible that your future messages will be filtered.
Did you ever add in a video how to show the coordinates of the player? it seems like when you press T you can see player x,y, col and row. I never saw where you did that code
Nice tutorial each, you anwsered almost all my questions, but I have two questions about inventories.. 1- If in my game the character can increase it's bag size, the easiest way would create a different inventory window, with different size, for each of the bag's sizes? 2- How do I do when the itens hold more than one slot, like in the Diablo games, where a dagger hold 2 slots verticaly and a sword could hold 3 slots verticaly, in order for the inventory manege the slots correctly?
1: If I were you I think I would create tabs so you can get extra slots. If you want to create a resizable frame, arrange the program so the frame size and the max slot num change based on your item capacity. 2: That will be pretty tricky. I've never tried it but I guess you'll need to set a slot size on each item such as (col x 1), (row x 2). And create a way (boolean etc.) to check each slot's vacancy state. Then let your inventory program knows which slots are currently occupied so it cannot place an item on already occupied slot. I can imagine it requires a lot of work (and probably a little algorithm) to optimize the placement!
Hey!! , would you please make a video on how to make JAR file for javaFX project, I made one but it's not running it says "no main manifest attribute", although I've already added my 'Main-Class' in Manifest.mf. Also, thank you very much, you clarified most of my doubts through this playlist.
Hi! Thanks for your awesome video! It really helps me in my project to build a game within a month from scratch with 0 experience! However, may I know if I were to add on an explosion class in which touching a 'bomb' that spreads across the tiles will cause health damages, which video should i rewatch to grasp a better understanding?
Hi, I realy like your videos, so can you make a video in which you make some kind of launcher for the game, so the person who downloads the game can play it without any code editor. Thank you one again for the content you are making.
I'm not planning to implement that but you can do that in the same way of handling dungeon (dungeon is another structure drawn in a different map file)
The game system of this is purely based on keyboard control so I think I won't do that in this series (it will be too much reconstruction). If you want to implement mouse, try checking mouse listener tutorial.
Hello Ryi! I have watched all your videos on "How to Make a 2D Game in Java" as I am also currently doing it for a project in school. Can you show us how to get the user's string input? For example, if the game ask for a username and the user have to type in their username. Once again, thank you for the videos that you have provided us!
Hi, I might make a video about it in the future but I'm a bit overwhelmed by tasks right now so I'll give you a summary. If I were you I would implement the function like this: 1. Create a game state for the name input. 2. Create a input box by using drawRect etc. 3. Create a String (name). 4. Get a character from the key event. Like this: e.getKeyChar() 5. Append the received character to the string (Example: name += e.getKeyChar()) and draw it in the box. 6. Confirm the name by pressing a key (Enter etc.) and use the string as player's name. Hope this helps!
Every new video of yours is like a new chapter of game of thrones!!!
great videos, they help a lot
Hey Dude! Nothing I love more than seeing an upload from you, thank you once again for providing such a great tutorial!
When the cursor moved, I immediately thought, "Oooo, I should make a Frogger game!" haha This is one of my fav vids, so far, in this series! Keep up the great work! :)
Yes, if you apply some of these mechanics it won't be so hard to create games such as Flogger or Sokoban :)
your are a freaking GEM to me bro, I hope you are doing good! thanks for this tutorial
Dude you work so much keep it up! Thanks for the upload
Thanks for the frequent video uploads🤗
great tutorial series, i am so thankful.
always look forward to your videos!
nice work RyoSnow , this is a good guide. I´m gone work with this soon.. Just now i´m working with some project with Ruby on Rails
Hey Christer, it's nice that you are working with Ruby on Rails. That's a pretty popular framework, especially in Japan. You can come back to Java any time. For now, good luck on your Rails project!
Great video again! THX!
went good without a hitch, thanks!
Hey, Ryi thanks for your dedication as always!
I noticed something weird at 18:22, while you were changing the item's size. Look at the old man sprite while changing sizes. I'm not sure if it changes its size or its y position, but the changes in the inventory also affects him.
Also i was wondering how to stack items on a single inventory slot (up to a certain quantity). For example, you can have up to 3 keys in the same slot because they're small.
Hope you're doing well! Take care! :D
About the old man, it's just his y position is different. I used two game windows (the previously opened program and the current one) for comparison. The Window's bottom bar is hidden in the video so it might look a bit confusing but I was switching between two windows to see the difference :P
For stacking items, you can add "amount" variable to the Entity. So when you pick up an item that you already have, you can add 1 to the amount instead of using another slot.
Hi RyiSnow, great video as always! I was wondering, how would you make it so that the description subwindow disappears if the cursor is hovering over a blank slot (meaning there is no item in that slot). Thank you!
Put drawSubWindow(dFrameX,dFrameY,dFrameWidth,dFrameHeight) in the itemIndex if statement then the window only shows up when you are selecting an item. Actually this is a neat idea so I will update my code as well. Thank you for the question.
@@RyiSnow thank you so much!
i realy like your channel you need to get 100k subscribes!!!
Hey! I'm on the 12th video (tileset), did everything exactly as you did and when I run my program, I can't move, music's not starting, counting not starting etc. Any help? Thanks
Most likely something is wrong in the getTileIMage method since that's the only thing we changed in that video so that's where you need to check. Also, if you have a question regarding a specific video, could you post a comment on that video? It would be easier for me to track the issue and the thread can be a useful reference for future viewers. Usually I don't respond to questions that are unrelated to the video so I hope you understand. And please don't post the same comment multiple times. You can get flagged as a potential spammer by RUclips and it's possible that your future messages will be filtered.
Thank you very much! Arigato!
Did you ever add in a video how to show the coordinates of the player? it seems like when you press T you can see player x,y, col and row. I never saw where you did that code
Here: ruclips.net/video/KR0ONBHY1SU/видео.html
@@RyiSnow Thank you
nice i wait for this video!!
Nice tutorial each, you anwsered almost all my questions, but I have two questions about inventories..
1-
If in my game the character can increase it's bag size, the easiest way would create a different inventory window, with different size, for each of the bag's sizes?
2-
How do I do when the itens hold more than one slot, like in the Diablo games, where a dagger hold 2 slots verticaly and a sword could hold 3 slots verticaly, in order for the inventory manege the slots correctly?
1: If I were you I think I would create tabs so you can get extra slots. If you want to create a resizable frame, arrange the program so the frame size and the max slot num change based on your item capacity.
2: That will be pretty tricky. I've never tried it but I guess you'll need to set a slot size on each item such as (col x 1), (row x 2). And create a way (boolean etc.) to check each slot's vacancy state. Then let your inventory program knows which slots are currently occupied so it cannot place an item on already occupied slot. I can imagine it requires a lot of work (and probably a little algorithm) to optimize the placement!
Hey!! , would you please make a video on how to make JAR file for javaFX project, I made one but it's not running it says "no main manifest attribute", although I've already added my 'Main-Class' in Manifest.mf. Also, thank you very much, you clarified most of my doubts through this playlist.
Thanks!
Hi! Thanks for your awesome video! It really helps me in my project to build a game within a month from scratch with 0 experience! However, may I know if I were to add on an explosion class in which touching a 'bomb' that spreads across the tiles will cause health damages, which video should i rewatch to grasp a better understanding?
I think Part 22 is the one you want to check. Bombs are like monsters that don't move.
very good
Do you plan to add multiplayer support to this game in the future?
Not really. This is a single player game tutorial.
Hi, I realy like your videos, so can you make a video in which you make some kind of launcher for the game, so the person who downloads the game can play it without any code editor. Thank you one again for the content you are making.
You can export your code as a Jar file or an exe. I've made tutorials for both method so check those if you are interested.
Tell me, in this tutorial, will you also do building climbing on a separate map? Besides, thank you for another brilliant video :)
What do you mean by building climbing?
@@RyiSnow
I meant the interior of a building that you can enter. The interior of the building is the "second" map
I'm not planning to implement that but you can do that in the same way of handling dungeon (dungeon is another structure drawn in a different map file)
@@RyiSnow
I'll try to do it. I have one more question, what will this game be like in the end? Will it be something like a movie for the new year?
can you do extra part so you explain how can we do attack and click on the main menu on new game and more with the mouse and not keyboard?
The game system of this is purely based on keyboard control so I think I won't do that in this series (it will be too much reconstruction). If you want to implement mouse, try checking mouse listener tutorial.
🥰🥰🥰
Hi RyiSnow! You always post such amazing content, I was wondering if you had a patreon or other place where I could donate. Thank you!
I don't have patreon but I am accepting donation via Ko-fi which is kind of similar to patreon.
ko-fi.com/ryisnow
Glad you liked my video!
Is this minicraft tutorials?
When can I play your game?
I'll upload the Jar when this tutorial is done.
@@RyiSnow awesome :)
How to alive trees.
I've already answered that in your previous thread
Hello Ryi! I have watched all your videos on "How to Make a 2D Game in Java" as I am also currently doing it for a project in school.
Can you show us how to get the user's string input? For example, if the game ask for a username and the user have to type in their username.
Once again, thank you for the videos that you have provided us!
Hi, I might make a video about it in the future but I'm a bit overwhelmed by tasks right now so I'll give you a summary.
If I were you I would implement the function like this:
1. Create a game state for the name input.
2. Create a input box by using drawRect etc.
3. Create a String (name).
4. Get a character from the key event. Like this: e.getKeyChar()
5. Append the received character to the string (Example: name += e.getKeyChar()) and draw it in the box.
6. Confirm the name by pressing a key (Enter etc.) and use the string as player's name.
Hope this helps!
@@RyiSnow Yes, this helps! Thank you for the advice! Will continue to watch your videos and stay healthy!