Item Drops - How to Make a 2D Game in Java #31

  Рет қаралды 10,264

RyiSnow

RyiSnow

Күн бұрын

Пікірлер: 43
@FerodriEste
@FerodriEste 2 жыл бұрын
I am going to write in Spanish because in English I cannot find the words: Gracias Ryi, por lo que haces, por el tiempo que le dedicas y la facilidad que tenes para explicar todo en detalle. No sabes todo lo que me has ayudado en esta pasion que encontre! Gracias Totales!
@garrison4825
@garrison4825 2 жыл бұрын
wow you are still continuing this, love the work sir. I am on the placing object episode but ive encountered some errors and will try to fix it in a more convenient and relaxed time and hopefully i will soon catch up with the new episodes. Thank you Ryi for providing these tutorials for us
@Mypremiumacct
@Mypremiumacct 3 ай бұрын
ive been waiting to get to this video and while work was super tiring, i had just enough time to follow this. Thank you again and cant wait for the breaking objects one. Ill check out if you happen to code a farming deal like Stardew but thats something ive been wanting to learn as well after finishing this playlist
@giancarlorodriguez4565
@giancarlorodriguez4565 2 жыл бұрын
Hey I wanted to thank you for this series. It has been very helpful and you're very good at teaching how to do everything. I have a question though, can you make a video on how to make the screen darker to restrict visibility like you did in the farewell 2021 video. Thanks Ryi!
@RyiSnow
@RyiSnow 2 жыл бұрын
We'll handle that when we create a dungeon level!
@woodswoody5553
@woodswoody5553 2 жыл бұрын
@@RyiSnow awesome I had problems with creating a new level (dungeon) or inside a home so that it loads a new map
@cabircoskun5772
@cabircoskun5772 4 ай бұрын
did you handle those problems ? i am going through the same problems
@darktimes574
@darktimes574 2 жыл бұрын
THANKS YOU FOR THE VIDEO!!! I was waiting for this one 😆🥳
@kikismine
@kikismine 2 жыл бұрын
What the hack, why you uploading videos so fast!! I like it!! Thanks RyiSnow
@Locras
@Locras 2 жыл бұрын
good as always
@qbusman3891
@qbusman3891 2 жыл бұрын
Grate work mate! I have a question, what shortcut do you use, to zip all methods in class? i cant find it in internet
@j9014201
@j9014201 2 жыл бұрын
收縮 : Ctrl + Shift + (數字鍵盤的 / ),展開 : Ctrl + Shift + (數字鍵盤的 * )
@qbusman3891
@qbusman3891 2 жыл бұрын
@@j9014201 what are these
@solarcubing7504
@solarcubing7504 2 жыл бұрын
Hey RyiSnow ik ive asked already but could you make a tutorial on doorways to other parts of the map i.e. houses caves dense forests etc
@Merkuse
@Merkuse 2 жыл бұрын
Hello Ryi. It is any way to fix that glitch: If we pick up coin spawned by aSetter then kill monster then activate aSetter.setObject() it will delete monster drop and spawn coin. (aSetter overrides monsterDrop[i] with previously pickuped coin) I asking because if keep adding more mechanics then that overriding can cause a serious exploit, dupe, etc. Sorry for bad grammar, I am bad at speaking english
@RyiSnow
@RyiSnow 2 жыл бұрын
I think we only need to call the setObject method when we start a new game so I thought it won't be a problem though?
@Merkuse
@Merkuse 2 жыл бұрын
@@RyiSnow What if add another method that will respawn hearts and mana crystals only. And activate that method along side with setMonster(). Because... If monsters respawned (and player probably will lose life and mana fighting them) why not give player opportunity to restore some hp and mana? By the way great tutorials Ryi. You motivated me cuz I saw your old videos and what patience and hard work can do!
@drefter4
@drefter4 Жыл бұрын
Hello! I think I have find some bug in Blue Boy Adventure. When have level up so I have many hearts and take red potion or pick up red heart it sometime dosn't give more health or more red hearts. Thank you
@kikismine
@kikismine 2 жыл бұрын
You can make: if the player isn't in radius 5-10 tiles, then the slimes cannot shoot.
@vampsz1592
@vampsz1592 2 жыл бұрын
Just check before the slime shoots if the player is in this range and then prevent it. To calculate the distance just do xd = Math.abs(playerX - worldX) the same with y and then distance = Math.max(dx, dy);
@ganbarimasu9446
@ganbarimasu9446 2 жыл бұрын
Hi, are you palling to add a marketplace or trader npc where one can buy stuff with coins? And, as always thanks for the video
@RyiSnow
@RyiSnow 2 жыл бұрын
Yes, we will add a merchant NPC in the near future. That's what those coins for!
@ganbarimasu9446
@ganbarimasu9446 2 жыл бұрын
@@RyiSnow Thanks for the fast answer. Also, I want to implement a quest system. Are you going to make a video about it. If you won't could you give me some hints so I can try coding it myself :)
@RyiSnow
@RyiSnow 2 жыл бұрын
Which part about the quest you don't understand?
@ganbarimasu9446
@ganbarimasu9446 2 жыл бұрын
@@RyiSnow I am planning to create an 'int quest' value for the player. And I'll create quests like 'int quest_killSlimes = 1' and many other quests. There are two confusing parts. 1- How can I make the npc ask yes/no question about the quest and accept or decline it. 2- While current quest is slimeKill quest, I'll probably need an if statement like if(quest == quest_killSlimes){ "Here I'll check if the killed moster is a slime and add to slimeKill counter I'll create for this quest."} and with one more if statment in it, I'll check if the requirement is met. The problem is I don't know where to type this if statement. Should I do it in GamePanel or Player class or in a different class? Thanks beforehand
@RyiSnow
@RyiSnow 2 жыл бұрын
1. You can use a similar method to what we did when we created the title screen. We'll make this yes and no options when we create a merchant NPC. 2. Basically anywhere is fine but if I were you I wouldn't do that in neither GamePanel of Player class because handling quests is not their roll. You can create a quest class or if you get the quest from an npc, you can also handle it in the npc class.
@woodswoody5553
@woodswoody5553 2 жыл бұрын
Hey is there any way you could show how to organize inventory (player can sort through and change slots of anything in inventory as preferred)
@Clipaholick
@Clipaholick 2 жыл бұрын
loved this!!!
@vampsz1592
@vampsz1592 2 жыл бұрын
Hello Ryi, how would you implement knockback? Do have any tips for me?
@RyiSnow
@RyiSnow 2 жыл бұрын
When you hit a monster, lock its action for 10 frames or so, increase its speed and let it move to the direction that the player is facing. Also make sure to check collision along the way otherwise the monster can get stuck in a solid tile.
@vampsz1592
@vampsz1592 2 жыл бұрын
@@RyiSnow Thanks a lot!!
@MrLoser-ks2xn
@MrLoser-ks2xn 2 жыл бұрын
Thanks!
@Locras
@Locras 2 жыл бұрын
How can I stop the projectiles from the trees?
@RyiSnow
@RyiSnow 2 жыл бұрын
You can add a projectile collision parameter to tiles and check the collision in the CollisionChecker.
@iliata5489
@iliata5489 2 жыл бұрын
Hi you give me source code of you game ? I want a start
@mamapuci
@mamapuci 2 жыл бұрын
Go go go
@MrLoser-ks2xn
@MrLoser-ks2xn Жыл бұрын
🥰🥰🥰
@jgames6172
@jgames6172 2 жыл бұрын
God
@RandomHandle-r2q
@RandomHandle-r2q 2 жыл бұрын
This is awesome! Is there a way to make it so that the chest's drop items like the monster's do?
Breaking Objects - How to Make a 2D Game in Java #32
27:02
RyiSnow
Рет қаралды 10 М.
Projectiles - How to Make a 2D Game in Java #29
28:49
RyiSnow
Рет қаралды 18 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
I Coded Minecraft Features Nobody Asked For...
28:58
Knarfy
Рет қаралды 528 М.
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 298 М.
Monopoly Turn 1 Victory
26:40
The Spiffing Brit
Рет қаралды 6 МЛН
Knockback  - How to Make a 2D Game in Java #41
18:37
RyiSnow
Рет қаралды 7 М.
Guard and Parry - How to Make a 2D Game in Java #49
26:08
RyiSnow
Рет қаралды 7 М.
How do non-euclidean games work? | Bitwise
14:19
DigiDigger
Рет қаралды 2,5 МЛН
29 Mind-blowing Minecraft Experiments
22:31
Skip the Tutorial
Рет қаралды 142 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН