How to use the Camera2D in Godot 3.0
Вставка
- Опубліковано 13 чер 2024
- Camera's are an essential part of developing a game. In this video you'll learn how to create a camera, and how to adjust it's various settings so that it functions properly for your game. You'll also get some advice on how to make your camera's as pleasing to the player as possible.
Become a patron to get exclusive content and support the channel:
/ gameendeavor
Join Our Community! We look forward to welcoming you.
Discord: / discord
Twitter: / gameendeavor
Into: Splashing Around - The Green Orbs
Howdy! Something I forgot to show in the video. At the end when I show how to automate the limits. To do the code I show, you need to add any tilemaps to a tilemap group. You can do this by going to the inspector panel, click the node tab, then groups. There you can add nodes to groups. Enjoy!
forgot to tell them to make it work go to your player script and add a line in func _ physics _process(delta)
$(name of camera node)._auto_set_limits()
@@MightyGamer-dw8pi Didn't forget, I just didn't hold your hand. My tutorials expect that you have an understanding of basic programming concepts (how to use a function).
But don't call it in _physics_process. That will call it 60 times a second, when once in the _ready method will most likely be sufficient.
@@GameEndeavor my bad man
Wow, this is one of the most fluid and concise tutorials I've seen for Godot. Well done! I know it's 2 years old, but it's never too late to give praise!
Thank you! Very long time since I made this, I'd almost hate to watch it now, lol.
@@GameEndeavor Well, I've been working on a project and perusing quite a great deal of videos on the subject, and the number of them where the first half of the video is dedicated to describing what the person is going to be talking about and qualifying the context of the video, then muddling through the demonstration as if for the first time is astounding.
That said, yours is good purely on its own merit. The context of other vids I've seen just makes it look even better.
@@keithwinget526 Ah yes, that was one of the core goals of my tutorials. Short, sweet, and to the point. :) Glad you enjoyed it.
Thanks, I spent half an hour looking up commands to try and move the camera when all I needed to do was hit the current checkmark. I'm dying but thank you!
Even though I wanted something totally different, this tutorial explained the whole system so well it helped me. Thank you!
This was the most helpful camera tutorial I've seen so far. I even learned things I never knew! Thanks!
This is really informative. Thanks for creating these videos! I'm looking forward for the smart camera tutorial.
Thank you for watching them! That video will be published tomorrow. :)
Just searched for Godot animation videos and found this series. Helpful, but also very nice & cute drawing style, good work!
Please keep posting, I subbed just for this.
Great video! This is really concise and easy to follow.
Straight to the point! I love it.
It saves you and I a whole bunch of time so win win!
Very concise and informative. Thanks!
Your videos are really helpful buddy! Thanks
Thank you for watching them. :)
Great video, helped me a ton
thank you very much this helped alot hope you keep making more videos like this one there very informative
Thank you for watching. :) I plan on doing more node breakdowns for my commonly used nodes like Tweens and Raycasts.
very clear, thank you
bro you help my game i love you
nice!
where can i get the demo code
what is difference simple parenting to player and follow by script?
@Game Endeavor
Thanks for the Help +1 Sub
I have a Camera2D attached to the Player Node, but no matter how much I change the drag margins, the camera ALWAYS follows the player. Why won't my drag margins work? :(
Have you encountered any instances of Sprite jittering/stuttering when using the smoothing effect?
Used to I'd notice some very strong jittering whenever the camera moved, and this would happen ocassionally. I don't know why I haven't noticed it lately. Could be that I'm working on a newer version? Disabling and re-enabling the camera usually worked for me.
Nice
Hi friend, are the spinning coins just animated sprites or via code?, if so what is the code to make the coins spin?
They're just animated sprites. :) Though if you wanted to achieve a similar effect through code then you could adjust the sprite's scale.x over time.
Is it ok to make a video like this, and ill post it to my channel?
Hello, have you abandoned the production of these videos?
It's a shame, it's one of the few channels that subtitles.
Yeah, for now. The videos are a massive time sink that takes too much of my attention away from game development.
I wanna to create a 2d game but i don't know anything need help
Thank you for help 😊
Voice kinda reminds me of cubfan