This is a Java tutorial channel but occasionally I upload other stuff too. I consider myself a mediocre programmer but I'm trying to get better and this channel has become a place that records my progress (you can see how noob I was if you watch my first video!).
Guidelines for using Blue Boy Adventure's code and assets:
docs.google.com/document/d/1qcafOofpXYd_QPr95qbgfb1GYxXKgSZb/edit
If you feel generous and don't mind to give some extra support to this channel:
ko-fi.com/ryisnow
Пікірлер
Thanks mate!! Keep up!
It's an amazing series of tutorial to follow. The way you explain complex ideas are really clear <3
Hey ryi, im getting a problem if you think you could help would be great. Exception in thread “Thread-0” java.lang.arrayindexoutofboundsexception: index 230 out of bounds for length 50 At main.collisionChecker.checkTile(collisionchecker.java:29) At entity.player.update(player.java:82) At main.GamePanel.update.. At Gamepanel run.. At java.base/java.lang.thread.run(thread.java:840)
The error message basically means that your code is trying to read data in index 230 of an array that has only 50 slots. And that is happening at line 29 in the checkTile method so that's where you want to check.
@@RyiSnow it only happens after i added npc / player collision any reason why?
Thank you!
how to make two player
My player still gets hurt when the orc isn't attacking. Any fixes?
hell yeah we got half of a sentence, persona 2 fans eating good tonight
I finished your tutorial starting from terminal game until now, and I wish to thank you for making making this AWESOME tutorial!!! <3
i entered all the code but the reactangle is not repaitning it is the same one and is dragging like a snake
i entered all the code but still the rectsngle is not moving :(
Hello, ik it is a year later but i can't get the ImageIcon thing to work and was wondering if anyone could help. Would be appreciated :D
Great work! Keep going! For new Java versions you can write window.repaint(); at the end of your createGameScreen. I had the issue that the label was only shown when I adjust the window size
Always I am allowed to reference. May I ask you one question? If checked, the screen will flash black. Do you know what the cause is?
You're legend! Thank you very much for your effort!
Thank you very much for your tutorial! Do you also explain e.g. to increase speed only for maybe 10 sec?
Sure there are various ways to do that. 10 sec means 600 frames (if FPS is 60) so you can count frames like you do for switching sprites. For example, create a boolean boostOn and set it true when you get the boots. While this boolean is true, increase your speed. After 600 frames, set the boolean false.
bro for me it is not displaying the chess pieces,please help.I am at the first 26:00 of the video
I'm wondering how I can draw the collision rectangle on the screen. Can someone help me?
Thank you so much!
good! you do not need to add or subtract speed in order to determine the player coordinates in switch, because they are already defined in player class.
I think i have a problem, its that when i move all the objecs are teleported to the very top of the screen
This took me so long to find but if Can't stop moving or you can stop moving but the animation doesn't make sure the bracket { } is after public void update () { and if(keyH.upPressed == true || keyH.downPressed == true || keyH.leftPressed == true || keyH.rightPressed == true ) { GO ALL THE WAY down to right above public void draw or the spite counter and movement won't work. sorry for the all caps but it need emphasise sp you dont suffer the same fate that I did. have a good day!
you're legend in doing tutorials!
how do I get JPanel
in C++ you can use Sleep() method to make it run on 60 fps and its very easy to implement
Tool for this : add obj to map(same tool create map), can you create ?
So i stored the best path into a list array and made the entity move to it every second. Now the problem is when the entity reaches the goal i want to set the start node to the goal node and set a new goal node position, how do i do that? I hope you can reply❤❤
Hey RyiSnow! I know it's been a while, but did you ever consider to implement placeable interactive items? like for example a campfire to skip the night (maybe the tent could heal, while campfire doesn't), or a simple workbench to use materials from monster to craft weapons instead of buying the complete weapons (the crafting menu would work similar to the tradings, just with a placeable item), or even bombs to blow up path-blocking rocks I saw you already tested placeable items with torches but didn't do a detailed tutorial about it, would love if you do
Your tool just help us with tilemap, so how to add obj ?
can u make a version with intellji please? i make game follow your path but i dont know how to export it I woul be appreciate that if you can make that
public void run() { double drawInterval = 1000000000/FPS; double delta = 0; long lastTime = nanoTime(); long currentTime; long timer = 0; int drawCount = 0; while(gameThread != null) { currentTime = nanoTime(); delta +=(currentTime - lastTime)/drawInterval; timer += (currentTime - lastTime); lastTime = currentTime; if(delta >= 1) { update(); drawToTempScreen(); drawToScreen(); delta--; drawCount++; } long frameTime = nanoTime() - currentTime; long targetTime = (long) drawInterval; while (frameTime < targetTime) { Thread.yield(); frameTime = nanoTime() - currentTime; } if(timer >= 1000000000) { frames = drawCount; drawCount = 0; timer = 0; } } }
is there a way to make a map gui that appears if player inputs "checkmap" that will show that the player moved to an area?
why does every key work with the controls, ive set the keyboard stuff up, but the keyboard is not working properly
Hey Ryi, I really like your style and am going to be doing this tutorial. Just wondering if you're still active?
Thanks, great video
thanks❤
Im using this now in 2024 and it is working like a charm. "If you want to skip this part but it will make it run better-". Dude, if you can help me more I am up for it always. Thanks for teaching me ❤
Thank you so much for making these videos. I hope you'll continue making more.
bro for me it is not displaying the chess pieces,please help.I am at the first 26:00 of the video
I have a problem, I did my personal icons for the mana, they are all 16x16 and all but when I put them they look black and white? And the background is just pure black. I dont know what I did wrong because yours work perfectly but mine dont and I have no clue.
Solved.
Wow its just like kamurocho in yakuza 😍😍😍
thnk you bro
When I implemented the new eGenerator to the SaveLoad it kinda broke my game. My character would no longer load with the saved armor on and my storage would no longer work. In fact it would freeze the game and give and error about down1 being null. Other than that it all works fine. It also appears I do not "need" to remove all the "case" lines from the SaveLoad class so no biggie.
I really don’t know what’s wrong with my collision detection, my character is still going through blocks it’s not suppose to and stopping blocks it is suppose to, and my character is a 16x16
I'm having an issue trying to move the white rectangle, I rewatch the video several times, but all my methods seems to be correct and I don't have any bugs in my debugguer. Someone wrote below that in the main class, the method order is truly important so I tried to do it the same way as he did but I'm still stuck at moving it. my KeyHandler class is working well since I can have different values depending on what button I press. Does anyone can help me ?
ıf you have problem up1 = ImageIO.read(new File("C:\\Users\\odrit\\Downloads\\pixil-frame-0 (1).png")); up2 = ImageIO.read(new File("C:\\Users\\odrit\\Downloads\\pixil-frame-0 (6).png")); down1 = ImageIO.read(new File("C:\\Users\\odrit\\Downloads\\pixil-frame-0.png")); down2 = ImageIO.read(new File("C:\\Users\\odrit\\Downloads\\pixil-frame-0 (7).png")); left1 = ImageIO.read(new File("C:\\Users\\odrit\\Downloads\\pixil-frame-0 (3).png")); left2 = ImageIO.read(new File("C:\\Users\\odrit\\Downloads\\pixil-frame-0 (8).png")); right1 = ImageIO.read(new File("C:\\Users\\odrit\\Downloads\\pixil-frame-0 (4).png")); right2 = ImageIO.read(new File("C:\\Users\\odrit\\Downloads\\pixil-frame-0 (5).png")); change pixil-frame to player and change odrit to your computer name
Wouldnt be easier to just do a cooldown?
Release a standalone binary version without any runtime needs. Your product usage will be huge.
Where are the assets?
Hi,very cool series btw,im following u step by step,and also im doing a course of java,btw i dont understand why when i copy the "NPC_setAction()" on the MON_GreenSlime for the movment AI the "actionLockCounter" cannot be resolved to a variable,can u explain me that,how to fix and why?
Japones csmr te amoooo, si vienes a Perú te preparo tu rico ceviche csmr....
If you're looking to randomize the damage the guard does, this is what I did. Random random = new Random(); int guardDamage = random.nextInt(5)+1; ^^