IN-GAME TIME in Godot (4.3) #2
11:38
21 күн бұрын
Introduction to SHADERS (in Godot)
15:56
Пікірлер
@matheuspena475
@matheuspena475 7 сағат бұрын
These might be one of the most complete tutorials on the subject, but I can't understand shit, so many scenes and scripts referencing each other, I'm completely lost
@MakerTech
@MakerTech 2 сағат бұрын
Inventories are just complex by nature, so don't feel bad if you don't understand it all. Maybe consider just having the simplest inventory in your game at first, and then you can change it into something more complex later.
@yubenzuo
@yubenzuo 9 сағат бұрын
Thank you so much for the tutorial! I have a little question. How to make time inherit when the scene changed?
@MakerTech
@MakerTech 2 сағат бұрын
You can transfer the time like you transfer the player. Or you can make it an autoload, but then some things might have to be setup a bit differently with input and the gui.
@serahsquarepants
@serahsquarepants 18 сағат бұрын
Good tutorial but how do you make it work for left and up limits? aparently with worldSizeInPixels.x and .y respectivelly it won't work
@quellusdev
@quellusdev 20 сағат бұрын
I love this so much. I’m loving seeing content for this game!
@MakerTech
@MakerTech 11 сағат бұрын
🤩
@fritzytg
@fritzytg Күн бұрын
Looking good, but based on the shadow of the strawberry, I would expect to be able to get a bit behind/above it before colliding rather than just by touching the sprite.
@MakerTech
@MakerTech Күн бұрын
Yeah I agree. I think we will probably adjust it later on. For now we are just building up the basics😀
@LilFishowo
@LilFishowo Күн бұрын
can this work for 3d games as well?
@MakerTech
@MakerTech Күн бұрын
Yes it should work just the same in a 3D game.
@LilFishowo
@LilFishowo Күн бұрын
@@MakerTech thanks
@dreidgon
@dreidgon Күн бұрын
Thank you very much, this really helped me.
@MakerTech
@MakerTech Күн бұрын
I'm glad I could help :)
@SCRIPTER_03
@SCRIPTER_03 Күн бұрын
Научи 😭😭😭
@classicalgamer
@classicalgamer 2 күн бұрын
Please add death and restart. Great video!
@fritzytg
@fritzytg 2 күн бұрын
Well yes but
@MakerTech
@MakerTech 2 күн бұрын
What do you mean "but". This makes total sense! 🤣
@darkhunter777
@darkhunter777 2 күн бұрын
From resource bAd idea 😁
@futursoup9007
@futursoup9007 2 күн бұрын
adorable 🦖 good luck
@MakerTech
@MakerTech 2 күн бұрын
Thanks :)
@uliseslz104
@uliseslz104 2 күн бұрын
Thanks for this videos. I'm trying to learn about this world and your videos help me a lot!!!
@MakerTech
@MakerTech 2 күн бұрын
Thanks for your comment. I'm glad you like the videos :)
@uliseslz104
@uliseslz104 2 күн бұрын
@@MakerTech :D
@CosmicEmber
@CosmicEmber 3 күн бұрын
I had an issue with the character changing to the correct position in the house, but upon returning to the previous scene it would put me somewhere else than the set entrance marker. Thankfully I figured it out but saw that other people had the same issue with seemingly no comments pointing this out so I hope this helps anyone struggling with the world entrance marker! at around 24:26 the 20th line in the base_scene script is if entrance is Marker2D and entrance.name == "any": but later at around 27:05 the same code (now the 26th line) is updated to be if entrance is Marker2D and entrance_name == "any" or entrance_name == last_scene: So the problem was I kept it as "entrance.name" but it should be "entrance_name". The early code works when the entrance marker is named "any" but if it's named after the previous scene ("inside_house" in this case) it gets ignored. I tested it and deleting the entrance marker in the world scene put me in the same place as it did before changing the entrance.name to entrance_name basically: the TLDR if you have this issue, check to make sure this line uses "entrance_name" instead of "entrance.name" in the base_scene script (I'm not the best at explaining stuff so I'm very sorry if this is hard to understand) I do want to add thank you Maker Tech much for this series, I've been wanting to learn Godot for a bit and your tutorials have really been helping me with learning how to use the program and its scripting!
@anitayadav4752
@anitayadav4752 3 күн бұрын
Help!!!!!!! I am also making a similar zelda game. But i am unable to set up the player animations. I want that the player animation changes at diagonal movements like : if movement "North-East" then animation "right-up" and if movement "South-east" then animation "right-down". If you don't understand me please refer to a youtuber "challad"(spelling may be wrong😅) who is making a game "legend of Zelda" Please help me!!!! 🙏🙏🙏🙏
@MakerTech
@MakerTech 3 күн бұрын
Did you follow any of my tutorials? There isn't one with 8 animations, but if you followed the one with 4 animations, then it can be easier to help with the next steps. (You can also join my Discord server and create a post asking for help there).
@anitayadav4752
@anitayadav4752 3 күн бұрын
Thank you very much ❤ I usually take help from chatGPT when I am learning but it never works in godot😅​@@MakerTech
@anitayadav4752
@anitayadav4752 3 күн бұрын
​@@MakerTech By the way I use a joystick to move my player I am just not getting the part with the animation
@atys1966
@atys1966 4 күн бұрын
Just found your videos, and I am loving them, so relaxed and approachable. So many other youtube tutorial videos go at 100 miles an hour and appear to be more about the creator showing how cleaver they are rather than teaching the viewer. I have started following your Action RPG series, with Godot freshly installed.
@MakerTech
@MakerTech 3 күн бұрын
I'm glad you like the videos :) I don't think I could go at 100 miles an hour even if I wanted. I would just stumble over too many of the English words ;)
@bocarlsson3rd
@bocarlsson3rd 4 күн бұрын
This might be a bit too ambitious. But it's would be cool if the character had one or more familiar like a rat and a cat or a bird. These could just be implemented as a weapon/item and have one power. The bird for example could fly a rope over chasms and tie it to a port to make the character able to get over it (kinda like the hooks hot but static). Or a rat could be sent through small openings go get items or activate switches (kinda like the boomerang). It's just an idea but it could work and fits the theme. Ps. You make me feel that Denmark ain't that bad after all 😉 /Bo from sweden
@MakerTech
@MakerTech 4 күн бұрын
Thanks, this is definitely a good idea, and I don't think it would be a problem for us to add :) I've already been told that the witched likes keeping slimes and slugs as pets, so we have already been discussing something in that direction.
@HeltonYan
@HeltonYan 4 күн бұрын
awesome
@jayr5421
@jayr5421 4 күн бұрын
Fantastic tutorials! My son (7) and I are starting our game dev journey together and your videos are a great help!
@MakerTech
@MakerTech 4 күн бұрын
That sounds great! I love that our are creating with your kid :)
@JigmeDatse
@JigmeDatse 4 күн бұрын
Absolutely lead designer... I think it would be lovely to admit that. The ideas are hers. Even if the implementation is yours.
@MakerTech
@MakerTech 4 күн бұрын
Yes I know, I'm just following orders...
@JigmeDatse
@JigmeDatse 4 күн бұрын
@@MakerTech Maybe you're the project manager...
@willysanc9099
@willysanc9099 4 күн бұрын
Okay, that is so awesome that you are working with our little one on a dev project!!!!!
@MakerTech
@MakerTech 4 күн бұрын
Thanks, it really is so much fun :)
@AceTeaaa
@AceTeaaa 4 күн бұрын
Hi ! I know the video is already 7 month old but I was wondering why you are using sprite2D nodes instead of TextureRect nodes for displaying the items in this inventory ? One of the main advice people gave me (on discord/youtube) was to never mix control nodes and node 2D, so I'm curious if in this case it made sense to do it
@MakerTech
@MakerTech 4 күн бұрын
There really is no other reason, then that is what I'm used to and therefore thought of when I created the video. You can definitely use TextureRect and it also has the advantage of being a control node. I think maybe if I was to recreate this I would use a TextureRect. I personally never really listen to any advice saying 'never do this' or 'this is the correct/perfect way'. Because most of the time you can do the same things in a lot of ways. As long as it works and isn't overcomplicated or making a mess of things, then it is just fine. Which is probably one of the most important lessons to learn. And most of the time you just do what you are used to and know.
@Angel-hv5ue
@Angel-hv5ue 4 күн бұрын
That's such a good idea for an oldschool rpg, how cute!
@MakerTech
@MakerTech 4 күн бұрын
Thanks :) I really like the idea as well. And my daughter already has a bunch of story ideas. I think we might end up having to write a children's novel or a comic book as well at some point 😅
@Taimisverycool
@Taimisverycool 4 күн бұрын
GIVE HER BACK HER EYELASHES SHE DESERVES THEM!!!
@MakerTech
@MakerTech 4 күн бұрын
🤣🤣
@MohammedEssamSaleh
@MohammedEssamSaleh 5 күн бұрын
goood
@AndrewBurrow-albcorp
@AndrewBurrow-albcorp 6 күн бұрын
Thanks! Having a lot of fun following along with my son
@MakerTech
@MakerTech 6 күн бұрын
Thank yo so much! It is wonderful to hear you are following a long with your kid :)
@TinyPixelDev
@TinyPixelDev 6 күн бұрын
Nice devlog and so Inspiring, after watching this I'll jump to wrok on my littel game.
@MakerTech
@MakerTech 6 күн бұрын
Thank you so much. And good luck with your project!
@dv_interval42
@dv_interval42 6 күн бұрын
INCREDIBLE CUTE AND WONDERFUL
@MakerTech
@MakerTech 6 күн бұрын
Thanks you so much :)
@frost8077
@frost8077 6 күн бұрын
By the color used, I was expecting one of the inspirations to be Little Witch Academia. The plot sounds like a wonderful idea.
@MakerTech
@MakerTech 6 күн бұрын
Oh for sure that could also be used as inspiration. I think the witch idea mainly comes from my daughter running around in her Halloween costume🤣 Also, I think the witches in the game are ‘evil’. And they keep snails and slimes as pets…
@frost8077
@frost8077 6 күн бұрын
@@MakerTech You get a magic powder from the witch by giving her a mushroom if I remember correctly. It's been a long time since I played A Link to the Past.
@MakerTech
@MakerTech 6 күн бұрын
I'm not sure with A Link to the Past (I actually haven't played that one that much). But that is how it works in Link's Awakening!
@App1e.Jews69
@App1e.Jews69 6 күн бұрын
AAAAAAAAAAA!!! this is sooo cute!!!!
@MakerTech
@MakerTech 6 күн бұрын
Yay!!!
@u6o_19
@u6o_19 6 күн бұрын
I always loved your devlogs and tutorials, and seeing you work with your daughter just makes me love even more your videos, knowing that they come from a incredible mom!❤
@MakerTech
@MakerTech 6 күн бұрын
Thank you so much. It really means a lot :) And I love working with my kids. I actually made a similar game idea with our oldest daughter when she was eight or nine (but I was also a full-time student, so there wasn't really time to actually make the game). Her character is named Asfrid and is half-god (but she doesn't know it - yet!).
@kuzanlogia
@kuzanlogia 6 күн бұрын
❤❤❤❤
@MakerTech
@MakerTech 6 күн бұрын
🤩
@johndupl
@johndupl 6 күн бұрын
This is super adorable. Keep it up!
@MakerTech
@MakerTech 6 күн бұрын
Thanks :)
@coobbyo
@coobbyo 6 күн бұрын
Not sure if this would work, but I think it could be worth trying a 16:9 ratio in the over world and 3:4 in dungeons with UI on the sides as you mentioned. Not sure if that would work, just a thought I had. Love to see this. Hoping to do something like that with my own kid sometime in the future.
@MakerTech
@MakerTech 6 күн бұрын
That is definitely something we will consider trying out. My main concern with the dungeons is if the rooms will be too narrow. Especially since I think we will stick with a room-by-room camera instead of one that follows the player (I think it will fit the puzzle elements better).
@mythology100
@mythology100 6 күн бұрын
It's a blessing to work with loved ones on something you all can enjoy. Best of luck.
@MakerTech
@MakerTech 6 күн бұрын
Thanks. And I agree. It really is so much fun. And she just loves magic and telling stories, so it is perfect for her :)
@senjos4805
@senjos4805 6 күн бұрын
Nice...woukld this also go for a game like Prince of Persia 1 or 2 like games?
@MakerTech
@MakerTech 6 күн бұрын
Hm, I'm not sure. I never really played those games (except a clone no my calculater).
@senjos4805
@senjos4805 6 күн бұрын
@@MakerTech Thanks
@Justme-hi2fn
@Justme-hi2fn 6 күн бұрын
So magical 🤩🤩
@GustonExE
@GustonExE 6 күн бұрын
plzz make a crafting tutorial
@JustABitWild
@JustABitWild 7 күн бұрын
Hey, I randomly found this video and watching it once it seemed ideal for what I had in mind for my game. Sadly it's not working, at around 12:37, in the scene_manager script I'm getting an error Invalid get index 'player'(on base: 'Node2D') Do you know why this is? Or if someone else knows that'd be great, I'm really wanting to use this system
@JustABitWild
@JustABitWild 7 күн бұрын
It's specifically for the line player = from.player
@MakerTech
@MakerTech 7 күн бұрын
To use exactly as I have made it, you need your player to be a child of your scene roots and named Player. And you need a reference to it in the scenes script. It should be covered in the video.
@JustABitWild
@JustABitWild 6 күн бұрын
​@@MakerTechI followed all the way up to the point I listed, I looked it up and down and I don't think I did anything differently. In the debugger, it says that the player is <null>. full_path also says it's <null>. Sorry I'm just at a loss and don't know who else to ask
@MakerTech
@MakerTech 6 күн бұрын
​@@JustABitWild But if you didn't follow the series before this video, then you setup might be different. This you could check: - The player is a direct child of the scenes root node - The player is called Player in the sceen tree - All your scenes has to have a script attached that either extends from BaseScene or is BaseScene - You scenes should all have an instance of the player added from the start. If you still can't get it to work, then consider joining the Maker Tech Discrod server and ask for help there.
@TheSuperToDO
@TheSuperToDO 7 күн бұрын
hi, I made same code, but when I press spaceBar("attack") my animAttackSword it cant end. What is wrong? var lastAnimDirection: String = "Down" var isAttacking: bool = false if Input.is_action_just_pressed("attack"): animations.play("attack" + lastAnimDirection) isAttacking = true weaponHide.visible = true await animations.animation_finished weaponHide.visible = false isAttacking = false func play_walk_animation(): if isAttacking: return if velocity.length() == 0: if animations.is_playing(): animations.stop()
@TheSuperToDO
@TheSuperToDO 6 күн бұрын
ok, not big deal, I had auto loop selected in Animationplayer
@MakerTech
@MakerTech 6 күн бұрын
I'm glad you found the problem :)
@MikoCore_
@MikoCore_ 7 күн бұрын
is there a way to make it ONLY go left right up down? my character moves in between when i click 2 keys at the same time
@MakerTech
@MakerTech 7 күн бұрын
In this tutorial we are creating 8-way movement. So horizontal and vertical movement but also diagonal movement. You have to do it a bit different, if you only want 4-way movement. I actually just implemented it myself in the new game I'm working on. Hopefully I'll get a dev log out before too long (it should have the code and a simple explanation, but it isn't a tutorial).
@MikoCore_
@MikoCore_ 7 күн бұрын
@@MakerTech Okay! Thankyou<3
@MikoCore_
@MikoCore_ 7 күн бұрын
@@MakerTech Can you do a tutorial for a follow mechanism? I want some npcs to follow the player but ive searched everywhere and couldnt find a tutorial. Ur the only godot tutorial channel that I understand from sooo 😅
@GustonExE
@GustonExE 7 күн бұрын
hey, quick question, how can we resize stuff in the inventory plz
@BlaiseArath
@BlaiseArath 8 күн бұрын
While testing this, I found out if you run in/out of the Swords hitbox while its in the spinning animation... you can pick up two or more of the same sword. Not sure how to handle that, I assume putting a limit on the amount of times any item can emit a pick up signal, or dump the hitbox on an item onces it been marked as "Collected" before the animation plays?
@MakerTech
@MakerTech 7 күн бұрын
I honestly can not remember if this is fixed in one of the videos or if we fixed it in the comments and on the Discord server. But you can solve it a number of ways. Ex: you can disable either the collision or the 'monitorable' property for the sword right when it is being picked up. set_deferred("monitorable", false)
@GustonExE
@GustonExE 8 күн бұрын
not a single error, excellent explanation
@EclipseLabsCo.
@EclipseLabsCo. 8 күн бұрын
For 3d this could be added in for a gui, but since its 3d i dont have a canvas layer for my main world, where would i add the second script?
@MakerTech
@MakerTech 8 күн бұрын
If you don't have a Canvas Layer node then you should just add it :) It should work the same for 3D.
@classicalgamer
@classicalgamer 8 күн бұрын
Please add a death system with respawn
@moinmaster6438
@moinmaster6438 8 күн бұрын
yayyy thank you so much, I finally got it to work :D This whole y-sorting thing was so annoying to deal with, ugh. But now I understood how it works! You just enable y-sorting on all the nodes that want to be y-sorted and all their parents, then you put the nodes that want to be y-sorted on the same z-index. And finally you adjust the y-sort origin to smoothen everything out. I stopped working on my project because of this issue combined with trouble in my personal life, but now I'm so excited to continue working on it!!!!!!!! Thank you!!
@MakerTech
@MakerTech 8 күн бұрын
Uh, there is actually a mistake in this video (because I made it before this was properly documented in the Godot documentation). You don't need to enable y-sort on the nodes themselves, only the parent node. When you enable y-sorting on a node, it y-sorts the node itself but also its children. So you might not always want to enable y-sorting on things like the player. But yup, z-index and origin is important!
@Modsynite
@Modsynite 9 күн бұрын
I'm still in this episode and haven't seen the new ones yet. Does the Camera2D have to be in the world node or can it be a part of the player scene with a different solution?
@itaykalininsky1684
@itaykalininsky1684 9 күн бұрын
Wasted about an hour of my time because I misspelled update as udpate...... 🤪🔫
@kidhates6629
@kidhates6629 10 күн бұрын
great tutorial! Quick question, how do we re-attach the follow camera to a new scene?
@MakerTech
@MakerTech 10 күн бұрын
You have to think of a solution using some of the same things we used in this tutorial. The scene has to either have the base scene script attached or one that inherits from the base scene. This script has a variable for the camera. When do you then think, that we should update the camera to follow the player we added from the scene manager?🤔
@samsonherman4282
@samsonherman4282 7 күн бұрын
@@MakerTech I am having an issue where upon entering the new scene, my follow camera script is trying to get the global position of the camera, but it was freed from memory at some point, crashing the game. The new scene has the base scene script attached, the camera is a direct child of the scene node, and it's follow node is set to the player. There must be a step I am missing to reinitialize the camera, but I am not sure what that step is because the camera is already a child of the scene. exact error message: Invalid get index 'global_position' (on base: 'previously freed').
@MakerTech
@MakerTech 6 күн бұрын
@@samsonherman4282 Did you update the cameras follow node to be the transfered instance of the player?
@samsonherman4282
@samsonherman4282 6 күн бұрын
@@MakerTech Do I do that in the _ready function of the follow camera script? I tried a solution like this but I received a null instance error of the same type as previous. I even tried making a follow camera class and inheriting it in the base scene with no luck. The error happens when I set the player to the instance of the player already in the scene, so the error makes sense, as that instance is freed from memory. I am just stuck with where and how to update the follow node to include the transferred player. One difference in my code is that I am not using the scene trigger as you are. I already have an interaction manager and interaction areas that require the player to give input to do things like trigger dialogue or a scene change, but this should not affect the camera, and my code works fine if I do not set the follow node to be the old player instance. I am having a lot of trouble with this unfortunately
@MakerTech
@MakerTech 6 күн бұрын
@@samsonherman4282 It has been a while, so I'm not 100% sure what solution I tested. But I'm thinking you need a method in the camera for setting the player. And then in your Base Scene script you can call the method right after you get the player from the scene manager. You can't use the cameras ready method because this is called before the ready method in the script for the scenes root node.