Advanced Dialogues (Page-Flip & Letter by Letter) - How to Make a 2D Game in Java #51
In this video, we improve our dialogue system and implement a function to display multiple strings without closing the dialogue window as well as a function to display one character at a time.
If you want to use my assets (images/maps/sound) that are used in this tutorial, here's the link:
drive.google.com/drive/folder...
Guidelines for using Blue Boy Adventure's code and assets:
docs.google.com/document/d/1q...
Timestamps:
0:00 Introduction
0:30 Bug Fix
3:30 Page-Flipping System
12:01 Fixing the Texts in Player, Objects, Event and Merchant
27:00 Displaying Different Sets of Dialogues
31:03 Displaying Texts Letter by Letter
35:25 FINAL RESULT
#javagamedevelopment #javatutorial
Пікірлер: 34
*CORRECTION* I set the player's leveling up text to the dialogue array in the setDialogue method which is called from the constructor but this turned out to be a bad idea. Since the text contains a variable (level), we need to update it every time the player gains a level otherwise it always displays as "You are level 1!". So in the checkLevelUp method, set the text to the array with the current level like this: dialogues[0][0] = "You are level " + level + " now! You feel stronger!"; startDialogue(this,0); Or you can just call the setDialogue again like this: setDialogue(); startDialogue(this,0); Thank you berkayw for pointing this out!
Amazing as always! Thank you so much for these videos :)
Man, thanks to you, I want to learn more about making games using Java. Much love man.
@RyiSnow Yes finally a new Video thank you so so much for making those great tutorials on youtube. Please keep it up we all enjoy it. Thank you RyiSnow
Keeps getting better and better
I litteraly was doung this by myself Yesterday! thank you anyway
Hello Ryisnow! You make great content and i got into gamedev thanks to you. I wanted to ask if you could do a tutorial on movable boxes (if player moves to them they move with him). Great content as always! Keep up the good work!
a lot of work and knowledge is needed to write a game. hand up :]
How can you make it so that some tiles have an animation (a moving mushroom for instance)
Hi, I was wondering if it is possible to do random world generation with the trees, grass and water?
Hi Ryisnow, I have a question about a feature I am trying to implement in my game. I was trying to implement building, but the way I did it didn't seem to work. Could you please share an idea on how to implement building (like putting down interactiveTiles such as bricks, wood, etc.) Sorry if I repeated a comment. I just needed to find a better way to do this.
Yo i love your videos but i have got one problem. When i compile my project and launch it i cant get away from the title screen and it doesnt draw the arrow when i press W or S. The weird part js that the music is playing but i am still in title screen. When i run it in eclipse everything works
I have a question, shouldn't npc in the UI class be null since we are not actually assigning it to anything?
GREAT!!!
I cannot run the jar file on my system as I really want only a few object and classes so I tried and followed only those parts from the video but ran with so much errors instead can you provide me runnable file for the project please. I really love your work, I wanted to work with some extra features on it.
NICE!
Hi Ryi again! When you level up it says "You are level 1 now! You feel stronger!" . Because we start setDialogue in constructor. It must be started in checkLevelUp method i think.
@RyiSnow
Жыл бұрын
Ah, you're right. I guess you have to set the text every time the player gains a level after all... Thanks for pointing this out!
Hi Ryi, my game is working on Windows without problems. Today i tried to run game on my Mac. It is running but it’s black screen. Do you know why it is happening ? (I use Intellij.)
@RyiSnow
Жыл бұрын
I'm not really sure since I don't own Mac. Full screen is done by the hardware, so maybe it's a hardware-related issue.
@berkayw5781
Жыл бұрын
@@RyiSnow thank you, im gonna check today
hey man your so good, i have bug i was in , if the chest is open and i try to save and after the save was hapen , if i try to see the msg in the open chest, i can't show like the problem in merchent but before the save, it worked normaly
@brunohoxha6455
3 ай бұрын
Im having thr same issue. Did you solve it?
@charefdz
3 ай бұрын
@@brunohoxha6455 yes they have solvet in next vidéo 🤔 i think 54 time 1.49 min
I'm trying to set different dialogueIndex to different npc
Hey! The sound effect keeps playing even after ending the dialouge.
@dustinodett
Ай бұрын
Yeah, I am having this issue as well. I'm not sure how to track down the cause at this time. If I find it I will share here.
@dustinodett
Ай бұрын
I found when I used Ryi's SE it worked fine. Must be something in my .wav sound file I made. I'm still not 100% familiar with beepbox.
can you do a mission?
🥰🥰🥰
First!
second
Hi RyiSnow i need help where can I contact you ?because I have problems with a function on intelliJ