Good tutorial, I have a small problem, if my enemy has life points with a progress bar, it hit's it twice with one swing of the sword, the issue is with turning on and off the collision, if I leave the collision on all the time it works, but I am not swinging if its turned on
@dreidgon6 сағат бұрын
I figured a way around this, it might help you if you see if its a good option. Instead of controlling the activation/deactivation of the collision on the actual script of the weapon node, you could control it on the actual animation. At the beggining of the animation swing add a call method that will activate the collision, at the end of the animation swing call another method to deactivate the collision. Thank you for the tutorial, it help me a lot and also to find this error, of mine good day!
@seqqisempozyumu7 сағат бұрын
great guide, thank you!
@KyleologyКүн бұрын
Here's how I do it: Use an array as a stack. Push a directional movement onto the stack on key down. Remove all instances of a direction from the stack on key up. Look at the direction on the top of the stack and move in that direction. It's a little more complicated, but it allows movement to act the way players expect.
@MakerTech22 сағат бұрын
That also sounds like a good solution :)
@thegamesirege4 күн бұрын
Great video! ❤God bless y'all owo
@thegamesirege4 күн бұрын
Great video! God bless y'all❤ owo
@rosshanks35665 күн бұрын
I followed along, and it updates when i get hurt, but it doesn’t reset to max hearts when I die and respawn. Any tips?
@luKa.K-L5 күн бұрын
Дуже круте відео Дякую
@TheR3dPainter5 күн бұрын
Hello awesome vid! Can this tutorial be used for also a heart meter in a dating sim game? I can't seem to find a tutorial anywhere for it. :(
@MakerTech5 күн бұрын
Probably. It should work for any kind of integer data. But my best advice is just to try it out, see how it fits and then evaluate what works and what you might want to change :)
@levichel7 күн бұрын
I'm doing exactly the same thing, but it still doesn't show the item in debugging. Can you help me in any way, please tell me what the problem might be. Thank you in advance! Your lessons are very helpful to me!
@ahmadabdallah28969 күн бұрын
You don't understand how badly i needed this, thank you so much.
@MakerTech9 күн бұрын
That is so great! I’m glad you found it helpful :)
@Fin_DevLog9 күн бұрын
Im pretty sure u can do the same with out the texture in godot i always make my buttons without textures
@Kio_Kurashi8 күн бұрын
Well you can if you want to use the built in button styles to create a flat and then slap a label over it for whatever text you need.
@coobbyo9 күн бұрын
This is a neat!
@dungeonchunks23449 күн бұрын
Need some help can anybody tell me how to fix this error please. Thank you. load: res://inventory/items/sword.tres:4 - ext_resource, invalid UID: uid://dnn47dkme0wg3 - using text path instead: res://art/sword.png <C++ Source> scene/resources/resource_format_text.cpp:453 @ load()
@manda_was_here10 күн бұрын
Adorable!!!
@MakerTech10 күн бұрын
Thanks :)
@BackSpace10111 күн бұрын
Hey, Great video! I'm stuck on 8:27 with setting a name for my scene trigger name thing, I have mine as @export var connected_scene: String #ShopRoom ShopRoom is the name of the file with my Room but im not sure if I need a hashtag or type 'string'. is string the name, what name did you use?
@dungeonchunks234411 күн бұрын
Hi MakerTech, I love your videos. Are you ever going to make the death scene for the player when it’s health is lost with a respawn. I have to say that you are the best RPG dev in youtube with great tutorials.
@MakerTech11 күн бұрын
I'm actually brainstorming ideas for the next few videos right now. I'll put in on the list as we speak and then we'll see what happens :)
@aykhannesibli1212 күн бұрын
thanks
@Krapochka-f4p13 күн бұрын
Будьласочка модете допомогти мені розібрати пачку "collectables" я не розумію кули і шо ви додавали туди, будьласка зробіть окреме відео, я аж плакати хочу, у мене не виходить
@Krapochka-f4p13 күн бұрын
Я вас прошу, допоможіть Мені
@Krapochka-f4p13 күн бұрын
БЛІНННН, я не знаю як ти зробила скрипти для lifeplot та sword і особливо для collectable, я не знаю як створювати спрайти які з'являються на карті та зникають коли персонаж до них підходить і особливо щоб вони поміщались в інвентар, Можеш Будь Ласка створити на цю тему Відео?!?!🙏🙏🙏🙏
@Kieran_Martin15 күн бұрын
I am a couple weeks late, sorry. This was really good information. I also agree that it needs to be one of the early videos, as it provides critical tools to learn. Thank you so much for your hard work and for taking the time to help us with the basics such as this. I can imagine it would be boring to cover and maybe even feel a bit pointless for someone with experience already. Keep up the great work. I will give the workspace a try and practice a bit more.
@MakerTech15 күн бұрын
This for your comment, it really means a lot! Also, this isn't boring for me to cover at all. One of my dream jobs used to be teaching Introduction to Programming at uni :)
@dungeonchunks234416 күн бұрын
Thank you for your tutorials there great. I'm starting your rpg series but I would like my player to move like zelda in a 4 directional movement not 8 way movement. How would I implement that to my player. If you ever get a chance to do a tutorial on that would be great and apricated. No one else in KZbin have 4 directional movement video.
@MakerTech15 күн бұрын
If I don't already have it on my (long) list of ideas, then I'll put it on. I actually have 4 directional movement in both of the projects I'm working on myself.
@mcorplab271916 күн бұрын
Calling get_parent() on a node inverts the parent->child hierarchy, making the child responsible for knowing what type of node the parent is. Instead it is recommended to use signals.
@pavloburyanov584217 күн бұрын
Solution 4: Expose and use component methods from root node avoiding implicit behavior. Pros: more control, easy to make/debug, reusable. Cons: a bit of code in the root node is needed to glue them together.
@MakerTech15 күн бұрын
Thanks for the input :)
@ИнтеДайр19 күн бұрын
autotile of different tiles, please
@notcherry785919 күн бұрын
For anyone struggling with the ``invalid get index "player"`` error, I found a fix that worked for me using player = from.get_node("Player") instead of player = from.player
@notcherry785919 күн бұрын
Actually I think this error comes from the script on the World node not extending the BaseScene (18:11)
@cheesycrackers-x7i20 күн бұрын
Note: This will most likely only work if your tile sprites are 16x16, and will not work if the upper left corner of your tilemap is not the origin. That is because rendering_quadrant_size isn't the tile size. To get the tile size as a vector from upper left corner to lower right corner, use tile_map.tile_set.tile_size Then access its x and y attributes to get the x and y dimensions. If your tilemap doesn't begin at the origin, use tile_map.position.x and y for the upper left corner and tile_map.end.x and y for the lower right corner. Eg.: limit_left = mapRect.position.x * tileSize.x limit_top = mapRect.position.y * tileSize.y limit_right = mapRect.end.x * tileSize.x limit_bottom = mapRect.end.y * tileSize.y
@ভোমরা21 күн бұрын
Create 3d game...2025now
@asthalis21 күн бұрын
so what ? 2d games can be fun too
@MakerTech20 күн бұрын
What kind of 3D game/festures would you like to see tutorial on? I can’t promise anything, but I’m always open to suggestions 😎
@zaludaoldrich21 күн бұрын
I have a similar game, but in 3D. For transitions between states, I started using a Finite State Machine (FSM). I encountered a problem with the async function await because it cannot be intercepted and its execution cannot be terminated. Therefore, I always use a timer. I also added the logic for "search" in this order: the enemy sees the player > the enemy chases the player > the enemy loses the player > the enemy searches around the area where the player was lost > the enemy returns home. And of course, thank you for another great tutorial.
@godot_programmer080822 күн бұрын
lol i got it here pls give heart to me
@martinithechobit22 күн бұрын
The mosy important
@yassineakkour15322 күн бұрын
I just started using Godot and making games and sincerely this is one of the best series of tutorial on KZbin
@MakerTech22 күн бұрын
Thanks, I'm glad you like the series :)
@Jesuisunknown22 күн бұрын
I'm still in Camera following the player episode but someday I'll get in here
@felakos156825 күн бұрын
blablablablabla...
@deathvader910626 күн бұрын
Hello. So far this video has gone super smoothly. But when did we change the use_item function in the player. I have no clue when we did that and also if where the remove_last_item_used is.
@laggsarecc478527 күн бұрын
Tihis tutorial is so amazing! Thank you so much for putting so much effort into making it understandable and even reflect on the things you may have included in the last video. Keep doing what your doing, you are such an awesome teacher! :3
@MakerTech22 күн бұрын
Glad it was helpful!
@uferis27 күн бұрын
11:04 If anyone else missed something like I did and is getting an error for the "Player". Its because the "Player" is a class name and should be named in the Player nod, like that: class_name Player extends CharacterBody2D
@fuwaneko29 күн бұрын
Fantastic tutorial, straight to the point.
@MakerTech27 күн бұрын
I'm glad you liked it :)
@osamuu101Ай бұрын
Hello there! could you please make a video on how to save and load your inventory? Thank you very much for such helpful videos!
@toothbrush64Ай бұрын
If you draw an inverted trapezoid style shape on the physics layer polygon for the trees, you can create a collision box that will nudge the player in front of the tree if they're walking directly left or right. This can ease some frustration for a player who is moving across a tree, but they're just a few pixels too high. Instead of bumping right into the object (rectangle collision), they can continue moving without interruption.
@MakerTech22 күн бұрын
Sorry for the late reply. But I'm really glad you shared the tip.
@atys1966Ай бұрын
Thank you for another very helpful video, your videos are so easy going and relaxed, you obviously make videos intended to teach rather than demonstrate how clever you are unlike some other creators, look forward to more.
@FlamechrАй бұрын
Super video 😊. Hmm kommer vi ind på test ? Unittest og CI ?
@MakerTechАй бұрын
Ikke lige som det første. Det er en lille "Lær af programmere" serie målrettet absolutte begyndere. Men hele ideen er først at lave denne her serie, og så tage fat i andre lidt dybere emner senere :)
@FlamechrАй бұрын
@@MakerTech cool 😊 det glæder jeg mig til. Ses på discord
@Karldev95Ай бұрын
Excellent video as always. Thank you very much.
@MakerTechАй бұрын
Thank you for the feedback. I'm glad you liked the video :)
@dreidgonАй бұрын
Great tutorial, thank you!
@MakerTechАй бұрын
Your welcome :)
@Karldev95Ай бұрын
Thank you very much. Excelent video as usual.
@MissedtargetDevАй бұрын
Commenting for the algorithm, great video although damn if it doesn't seem impossible at first blush.
@MakerTechАй бұрын
Hah, I'm glad you got it to work (I'm assuming? ;) )
@TheShelleyАй бұрын
Thank you so much for your videos! You explain everything really well, and it's easy to follow.
@MakerTechАй бұрын
Thanks you so much for the feedback :)
@RaposaCadelaАй бұрын
how about collision?
@MakerTechАй бұрын
There is another episode that show collision with tile maps (or tilemap layers): kzbin.info/www/bejne/eWGxaYmdhb5-bqs And there is also a short to accompany it: kzbin.info0qB89qPp3Y4
@natanmaia3575Ай бұрын
Your final solution is generally the solution I use (although I just use methods, not signals). Call down, Signal up is great. I also call the states "physics update" inside the players physics process, so those aren't always active. Then, if some state needs access to a specific component, I connect it via @export variables.