Knockback - How to Make a 2D Game in Java #41

  Рет қаралды 7,126

RyiSnow

RyiSnow

Күн бұрын

Пікірлер: 33
@johnwinters1705
@johnwinters1705 2 жыл бұрын
These videos are absolutely amazing, hope you do a turn based battle system in the future...like Final Fantasy or Pokemon. Looking forward to all your future content.
@kaiseraugustus1393
@kaiseraugustus1393 5 ай бұрын
I've probebly watched this series already 2x and not getting enough of it ) Well done and some a day I will use this as inspiration ^^
@michaelharrington5860
@michaelharrington5860 Жыл бұрын
Finished up the A* videos today. Really took my time with both of them, but will definitely rewatch them multiple times in the future to solidify the concept and logic. Everything is working great so far. Looking forward to implementing knockback tomorrow! Thanks RyiSnow!
@adnan2734
@adnan2734 Жыл бұрын
If only these series would last forever :)
@laurenzfitzner
@laurenzfitzner 2 жыл бұрын
I really like the knock back system Thought about this for a wile, so it's nice to see you working on it
@momagi6039
@momagi6039 2 жыл бұрын
Glad to see the latest episode of the video so soon
@FerodriEste
@FerodriEste 2 жыл бұрын
Excellent video Ryi. For later it would be great that when you kill all the slimes, somehow they spawn again but stronger (more hp, attack, defense, speed)... I don't know, it seems like a good idea to give it a story without end!! hehe.
@kikismine
@kikismine 2 жыл бұрын
Nice new video from RyiSnow
@javierbernardosaura8934
@javierbernardosaura8934 2 жыл бұрын
Great video! I think it's a good idea to create a discord for us to implement new mechanics to the game and help each other. (sry for my english)
@Melvin-14
@Melvin-14 2 жыл бұрын
hey, rysnow, do you know how to make the mobs play attack animations? i really need this, when i tried to do it they would just keep playing the animation and would play it really fast
@LORF0
@LORF0 2 жыл бұрын
Great video! Will there be a video on crafting system?
@RyiSnow
@RyiSnow 2 жыл бұрын
What kind of stuff do you want to make with the system?
@LORF0
@LORF0 2 жыл бұрын
Stuff like tools for example. But looking at the current state of the game adding a crafting system is a bit early since there isn't any sort of materials to be collected like wood or things from caves(which is a whole different system by it self to be added). Probably be best for the next new game series or at the final stages of this current game. Thanks for the reply tho!
@OneLatteComingRightUp
@OneLatteComingRightUp 11 ай бұрын
Hi Ryisnow, I was wondering if you could make the player take knockback from monster projectiles?
@Sweperly
@Sweperly 2 жыл бұрын
Wow! i'm at the 6# episode and i watch this one to know the end, and it looks amazing! And will it ever end?
@christianfryksten8524
@christianfryksten8524 Жыл бұрын
Upon attacking, my character freezes
@michael_hraje
@michael_hraje 2 жыл бұрын
Hey, i was wondering how could you easily implement an option for multiple languages in game. I thought about using dictionaries, but the way i wanna do it just seems way too complicated. Do you have any tips for that? Thank you :D
@RyiSnow
@RyiSnow 2 жыл бұрын
Sorry, I don't really understand your question Do you mean you already have translated texts and wondering how to implement them?
@michael_hraje
@michael_hraje 2 жыл бұрын
@@RyiSnow i havent translated the texts yet, but i want to try implementing the translation as another option and i am wondering how to do that the best way possible
@Merkuse
@Merkuse 2 жыл бұрын
@@michael_hraje Add a variable that is responsible for the language. Then put "if condition" in each place where the program writes the text. Something like "if (lang == "eng") {// write English text} and so on
@hawkale140
@hawkale140 2 жыл бұрын
This one was very interesting! the only problem is that if i shoot a fireball and then change direction, the monster will be pushed in the new direction and not in the right one. For example: o x "o" is me and "x" is monster. if I shoot and then run to the left before the fireball hits the monster, the game reads that my direction is left so the monster is "dragged" towards me and not pushed away. I tried adding the direction of the hit when calling the method damageMonster but it doesn't seem to fix the problem...
@RyiSnow
@RyiSnow 2 жыл бұрын
You're right. That is a bug. If you want to add knockback power to projectiles and avoid the issue, here's a quick fix: public void damageMonster(int i, int attack, int knockBackPower, String direction) // receive direction parameter damageMonster(monsterIndex, attack, currentWeapon.knockBackPower, direction); // pass direction parameter knockBack(gp.monster[gp.currentMap][i], knockBackPower, direction); // pass direction parameter public void knockBack(Entity entity, int knockBackPower, String direction) // receive direction parameter gp.player.damageMonster(monsterIndex, attack, knockBackPower, direction); // pass projectile direction else if(collisionOn == false) { switch(gp.direction) // change from player direction to entity direction This way the knockback direction should be handled properly.
@hawkale140
@hawkale140 2 жыл бұрын
@@RyiSnow thank you, I really appreciate you always answer my doubts
@MrLoser-ks2xn
@MrLoser-ks2xn 2 жыл бұрын
Thanks!
@Sweperly
@Sweperly 2 жыл бұрын
And also, i got a suggestion wich is pretty hard or idk but, it's to make the game multiplayer (LAN) but I think it's waaaay too much for now
@MrLoser-ks2xn
@MrLoser-ks2xn Жыл бұрын
🥰🥰🥰
@woodswoody5553
@woodswoody5553 2 жыл бұрын
💪
@od1367
@od1367 2 жыл бұрын
THank you!!!!!!!!!!!!!!!!!!!!!!
@rolandspolovnuks6223
@rolandspolovnuks6223 2 жыл бұрын
@RyiSnow Hey, I am wondering could you create a lot of bouncing balls in the box ?
@RyiSnow
@RyiSnow 2 жыл бұрын
What?
@Minecraftgamer-gb5ow
@Minecraftgamer-gb5ow 2 жыл бұрын
Hi ryi. My comment got deleted because it had a link in it I think. There is someone on tiktok that took credit for some of your work and I thought you should know.
@RyiSnow
@RyiSnow 2 жыл бұрын
Really? Can you tell me a search keyword that leads to the video?
@bertramrayhan2999
@bertramrayhan2999 24 күн бұрын
thank you so much ryi for your video!. oh after i saw your video i had an idea about making the monster to go up too after it got knockback. so it looks like flying. so i add this in else if(collisionOn == false) if(gamePanel.player.direction.equals("left") || gamePanel.player.direction.equals("right")){ if(knockBackCounter == 1){ worldY -= 1; } if(knockBackCounter == 2){ worldY -= 1; } if(knockBackCounter == 3){ worldY -= 1; } if(knockBackCounter == 4){ worldY -= 1; } if(knockBackCounter == 5){ worldY += 1; } if(knockBackCounter == 6){ worldY += 1; } if(knockBackCounter == 7){ worldY += 1; } if(knockBackCounter == 8){ worldY += 1; } } and i think it looks much cooler!!
Object Detection/Loot - How to Make a 2D Game in Java #42
24:28
Equip & Use Items - How to Make a 2D Game in Java #28
27:53
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
I Made a Zero Player Game
12:30
Sam Hogan
Рет қаралды 10 МЛН
How I Made a 3D Platformer in 2D Game Engine
21:23
ggenije
Рет қаралды 604 М.
Transition Between Maps - How to Make a 2D Game in Java #38
34:59
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 4,4 МЛН
A.I. Learns to play Flappy Bird
7:46
Code Bullet
Рет қаралды 14 МЛН
Drawing Tiles - How to Make a 2D Game in Java #4
27:26
RyiSnow
Рет қаралды 166 М.
How to Code (almost) Any Feature
9:48
DaFluffyPotato
Рет қаралды 717 М.
Simulating the Evolution of Rock, Paper, Scissors
15:00
Primer
Рет қаралды 2,5 МЛН