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

КОМЕНТАРІ • 42

  • @GameEndeavor
    @GameEndeavor  5 років тому +13

    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!

    • @MightyGamer-dw8pi
      @MightyGamer-dw8pi 3 роки тому +2

      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()

    • @GameEndeavor
      @GameEndeavor  3 роки тому +1

      @@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.

    • @MightyGamer-dw8pi
      @MightyGamer-dw8pi 2 роки тому

      @@GameEndeavor my bad man

  • @keithwinget526
    @keithwinget526 3 роки тому +13

    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!

    • @GameEndeavor
      @GameEndeavor  3 роки тому +1

      Thank you! Very long time since I made this, I'd almost hate to watch it now, lol.

    • @keithwinget526
      @keithwinget526 3 роки тому

      @@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.

    • @GameEndeavor
      @GameEndeavor  3 роки тому

      @@keithwinget526 Ah yes, that was one of the core goals of my tutorials. Short, sweet, and to the point. :) Glad you enjoyed it.

  • @solsystem1342
    @solsystem1342 2 роки тому +3

    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!

  • @truechampignon6459
    @truechampignon6459 2 роки тому +2

    Even though I wanted something totally different, this tutorial explained the whole system so well it helped me. Thank you!

  • @TerrariaMcJo
    @TerrariaMcJo 11 місяців тому

    This was the most helpful camera tutorial I've seen so far. I even learned things I never knew! Thanks!

  • @easyU2B
    @easyU2B 5 років тому +4

    This is really informative. Thanks for creating these videos! I'm looking forward for the smart camera tutorial.

    • @GameEndeavor
      @GameEndeavor  5 років тому +1

      Thank you for watching them! That video will be published tomorrow. :)

  • @danielcarkner1548
    @danielcarkner1548 5 років тому

    Just searched for Godot animation videos and found this series. Helpful, but also very nice & cute drawing style, good work!

  • @froyorex4856
    @froyorex4856 5 років тому +1

    Please keep posting, I subbed just for this.

  • @bluepsiongamer4909
    @bluepsiongamer4909 3 роки тому

    Great video! This is really concise and easy to follow.

  • @jayxofficial5126
    @jayxofficial5126 4 роки тому +10

    Straight to the point! I love it.

    • @GameEndeavor
      @GameEndeavor  4 роки тому +2

      It saves you and I a whole bunch of time so win win!

  • @sc-mh3jj
    @sc-mh3jj 3 роки тому

    Very concise and informative. Thanks!

  • @flaviokonti5522
    @flaviokonti5522 4 роки тому

    Your videos are really helpful buddy! Thanks

  • @user-vv1do1wg1j
    @user-vv1do1wg1j 4 роки тому

    Great video, helped me a ton

  • @felixclotida3468
    @felixclotida3468 4 роки тому

    thank you very much this helped alot hope you keep making more videos like this one there very informative

    • @GameEndeavor
      @GameEndeavor  4 роки тому +1

      Thank you for watching. :) I plan on doing more node breakdowns for my commonly used nodes like Tweens and Raycasts.

  • @borissman
    @borissman 3 роки тому

    very clear, thank you

  • @Psychxa
    @Psychxa 2 роки тому

    bro you help my game i love you

  • @nihalshrivastav6252
    @nihalshrivastav6252 5 років тому +3

    nice!

  • @willjohn8697
    @willjohn8697 4 роки тому +1

    where can i get the demo code

  • @aheahetaroman
    @aheahetaroman 5 років тому

    what is difference simple parenting to player and follow by script?

  • @nicktheneko
    @nicktheneko 4 роки тому

    @Game Endeavor
    Thanks for the Help +1 Sub

  • @coffee_bean__
    @coffee_bean__ 3 роки тому

    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? :(

  • @madebyLGrabowski
    @madebyLGrabowski 5 років тому

    Have you encountered any instances of Sprite jittering/stuttering when using the smoothing effect?

    • @GameEndeavor
      @GameEndeavor  5 років тому

      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.

  • @greenbillugaming2781
    @greenbillugaming2781 5 років тому

    Nice

  • @yourkodi3945
    @yourkodi3945 4 роки тому

    Hi friend, are the spinning coins just animated sprites or via code?, if so what is the code to make the coins spin?

    • @GameEndeavor
      @GameEndeavor  4 роки тому

      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.

  • @tonyboychannel7936
    @tonyboychannel7936 4 роки тому

    Is it ok to make a video like this, and ill post it to my channel?

  • @desoft8b
    @desoft8b 5 років тому +3

    Hello, have you abandoned the production of these videos?
    It's a shame, it's one of the few channels that subtitles.

    • @GameEndeavor
      @GameEndeavor  5 років тому +5

      Yeah, for now. The videos are a massive time sink that takes too much of my attention away from game development.

  • @Sanad4444
    @Sanad4444 4 роки тому +1

    I wanna to create a 2d game but i don't know anything need help

    • @Sanad4444
      @Sanad4444 4 роки тому +1

      Thank you for help 😊

  • @p_inecone
    @p_inecone 4 роки тому

    Voice kinda reminds me of cubfan