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

  • @RyiSnow
    @RyiSnow Жыл бұрын

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

  • @xthepersonx
    @xthepersonx Жыл бұрын

    Amazing as always! Thank you so much for these videos :)

  • @mountainhills4429
    @mountainhills4429 Жыл бұрын

    Man, thanks to you, I want to learn more about making games using Java. Much love man.

  • @Cattix
    @Cattix Жыл бұрын

    @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

  • @kamisama1712
    @kamisama1712 Жыл бұрын

    Keeps getting better and better

  • @vittoriolufrano9814
    @vittoriolufrano9814 Жыл бұрын

    I litteraly was doung this by myself Yesterday! thank you anyway

  • @loytech4624
    @loytech4624 Жыл бұрын

    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!

  • @MrGonzoles
    @MrGonzoles Жыл бұрын

    a lot of work and knowledge is needed to write a game. hand up :]

  • @woodswoody5553
    @woodswoody5553 Жыл бұрын

    How can you make it so that some tiles have an animation (a moving mushroom for instance)

  • @Vicellon
    @Vicellon Жыл бұрын

    Hi, I was wondering if it is possible to do random world generation with the trees, grass and water?

  • @greatvast2143
    @greatvast2143 Жыл бұрын

    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.

  • @Moordiin
    @Moordiin Жыл бұрын

    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

  • @mr_waddleman3289
    @mr_waddleman32892 ай бұрын

    I have a question, shouldn't npc in the UI class be null since we are not actually assigning it to anything?

  • @kevincolgan6651
    @kevincolgan6651 Жыл бұрын

    GREAT!!!

  • @itsrhymetimetots
    @itsrhymetimetots Жыл бұрын

    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.

  • @momagi6039
    @momagi6039 Жыл бұрын

    NICE!

  • @berkayw5781
    @berkayw5781 Жыл бұрын

    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

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

  • @berkayw5781
    @berkayw5781 Жыл бұрын

    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

    @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

    @berkayw5781

    Жыл бұрын

    @@RyiSnow thank you, im gonna check today

  • @charefdz
    @charefdz Жыл бұрын

    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

    @brunohoxha6455

    3 ай бұрын

    Im having thr same issue. Did you solve it?

  • @charefdz

    @charefdz

    3 ай бұрын

    @@brunohoxha6455 yes they have solvet in next vidéo 🤔 i think 54 time 1.49 min

  • @emilbogaci3715
    @emilbogaci3715 Жыл бұрын

    I'm trying to set different dialogueIndex to different npc

  • @ksportalcraft
    @ksportalcraft Жыл бұрын

    Hey! The sound effect keeps playing even after ending the dialouge.

  • @dustinodett

    @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

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

  • @NoWays
    @NoWays Жыл бұрын

    can you do a mission?

  • @MrLoser-ks2xn
    @MrLoser-ks2xn6 ай бұрын

    🥰🥰🥰

  • @darkpaladin.
    @darkpaladin. Жыл бұрын

    First!

  • @orangomango
    @orangomango Жыл бұрын

    second

  • @riccardoticchioni6661
    @riccardoticchioni6661 Жыл бұрын

    Hi RyiSnow i need help where can I contact you ?because I have problems with a function on intelliJ