Advanced Dialogues (Page-Flip & Letter by Letter) - How to Make a 2D Game in Java #51

Поделиться
HTML-код
  • Опубликовано: 4 янв 2025

Комментарии • 37

  • @RyiSnow
    @RyiSnow  2 года назад +10

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

  • @PVZovrld
    @PVZovrld 4 месяца назад +1

    I love this bit a lot! Adding sounds on the text gives me undertale vibes. Also I declared a voice variable in the entity class so i can assign a value to it to use npc.voice as the parameter for the sound effects. Nothing much just to have a unique voice and system dialogue sound.
    Anyways always love your work Ryi!!

  • @kamisama1712
    @kamisama1712 2 года назад +1

    Keeps getting better and better

  • @mountainhills4429
    @mountainhills4429 2 года назад

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

  • @xthepersonx
    @xthepersonx 2 года назад +2

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

  • @vittoriolufrano9814
    @vittoriolufrano9814 2 года назад +1

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

  • @mr_waddleman3289
    @mr_waddleman3289 10 месяцев назад

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

  • @woodswoody5553
    @woodswoody5553 2 года назад +1

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

  • @greatvast2143
    @greatvast2143 2 года назад +1

    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.

  • @MrGonzoles
    @MrGonzoles 2 года назад

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

  • @loytech4624
    @loytech4624 2 года назад

    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!

  • @Cattix
    @Cattix 2 года назад +1

    @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

  • @itsrhymetimetots
    @itsrhymetimetots 2 года назад

    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.

  • @warhammer315
    @warhammer315 5 месяцев назад

    I got java out of memory error related to direct clip when i play too many dialogue that play speak sfx each letter

  • @berkayw5781
    @berkayw5781 2 года назад +2

    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  2 года назад +3

      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!

  • @Vicellon
    @Vicellon 2 года назад

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

  • @Moordiin
    @Moordiin 2 года назад

    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

  • @ksportalcraft
    @ksportalcraft Год назад

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

    • @dustinodett
      @dustinodett 8 месяцев назад

      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 8 месяцев назад

      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.

  • @charefdz
    @charefdz 2 года назад +1

    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 10 месяцев назад

      Im having thr same issue. Did you solve it?

    • @charefdz
      @charefdz 10 месяцев назад

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

  • @alphabeta3528
    @alphabeta3528 9 дней назад

    damn this is good video

  • @berkayw5781
    @berkayw5781 2 года назад

    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  2 года назад +1

      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 2 года назад

      @@RyiSnow thank you, im gonna check today

  • @NoWays
    @NoWays 2 года назад

    can you do a mission?

  • @emilbogaci3715
    @emilbogaci3715 Год назад

    I'm trying to set different dialogueIndex to different npc

  • @kevincolgan6651
    @kevincolgan6651 2 года назад

    GREAT!!!

  • @momagi6039
    @momagi6039 2 года назад

    NICE!

  • @MrLoser-ks2xn
    @MrLoser-ks2xn Год назад

    🥰🥰🥰

  • @darkpaladin.
    @darkpaladin. 2 года назад

    First!

  • @orangomango
    @orangomango 2 года назад

    second

  • @riccardoticchioni6661
    @riccardoticchioni6661 2 года назад

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