Godot Recipe: Multitarget Camera2D

Поділитися
Вставка
  • Опубліковано 31 гру 2024

КОМЕНТАРІ •

  • @roguemyst1244
    @roguemyst1244 4 роки тому +18

    Me: *Clicks video to learn more about fancy Godot camera stuff*
    Also Me: "This man has playable poptarts for characters! Amazing!!"

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

      I thought they were ketchup and mustard packets (still dope).

  • @DunoPriv
    @DunoPriv 4 роки тому +8

    What is 5:06 "var d" for? It doesn't seem to be ever used in the code.
    EDIT: Also in 3:17 it should be "erase(t)" not "remove(t)" because remove method asks for intiger (not vairant). Great video non the less. Helped me a lot!

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

    This is sofar the most comprehensive Godot tutorial youtube channel. please don't stop making videos anytime soon
    It really helps and I appreciate them.

  • @HackHeyner
    @HackHeyner 22 дні тому

    4 years later and still WOW

  • @thezadek
    @thezadek 4 роки тому +3

    possible upgrade could be using group instead of array to hold the camera targets

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

      What do you mean exactly

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

      @@aurorapaisley7453 instead of having targets array, you could have it iterate through get_tree().get_nodes_in_group("camera_targets"), then you don't have to handle adding and removal from the target array and don't need direct path to the camera object anywhere in the script.

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

    I look forward to the continuation of your lessons. I wish you and your loved ones health and happiness.

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

    This recipe is so succinct and kicks so much ass, I hardly know where to begin! I am beside myself with joy.

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

    This channel has read my mind so many times. THANK you for this!

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

    This is a great tutorial. I appreciate the visual representation of the player box.♥ Thank you.
    It would be interesting to see you make it switch from 1 camera that's shared to a split screen depending on how far apart the players are.

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

    Great video; thank you! Using a non-traditional node hierarchy, controlling the camera is something I have trouble grasping. This provides a new way to look at it.

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

    nice tutorial man, thank you. happy to see you again ^^

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

    Oh, you are back after month.

  • @MrTybex
    @MrTybex Рік тому +1

    My cam zooms in when targets get away from each other instead of zooming out. I can't figure out why

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

    Wow this will be very useful to me at some point, you are great, your content is so amazing

  • @voiox
    @voiox 4 роки тому +3

    Ahhhh, them blue keyboard switches! :3

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

    Awesome tutorial!! Love your content man!

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

    I loved the training videos. Please continue with Godot 3d lessons.

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

    That looks sooo satisfying!

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

    keep them coming! thanks for the video

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

    Awesome work.

  • @QyfieK
    @QyfieK Рік тому +1

    I know that this is a long shot but it’s the only place I can go to for help. I’m trying to create this in Godot 4, in a 3D project that has a 2.5D perspective. Could someone be nice enough to guide me how to convert this code to fit my needs?

    • @Kidscancode
      @Kidscancode  Рік тому +1

      I have updated the recipe on the website to work with 4.x. kidscancode.org/godot_recipes/4.x/2d/multi_target_camera/index.html
      However, it's still 2D. You're going to have to do some extra work to make it function with a 3D camera.

    • @QyfieK
      @QyfieK Рік тому

      @@Kidscancode Thanks! Now I at least have something to stand on!

    • @picronicro
      @picronicro 9 місяців тому

      @@Kidscancodeyou are my lifesaver! thx

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

    senpai is back!

  • @Filipinjo
    @Filipinjo 2 роки тому +1

    It doesn't work... the camera seems not to zoom out.

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

    Awesome. Thanks for this recipe!

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

    Amazing way to achieve this. Thanks for the trick!

  • @simondanielssonmusic
    @simondanielssonmusic 7 місяців тому

    You are a legend! Thank you so much!

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

    I have a question about this line: "var d = max(r.size.x, r.size.y)"
    This line simply creates a variable "d" that stores the larger number, correct? But the variable "d" is not referenced again anywhere in the code.
    I tried commenting out this line and it appears to work fine. Is this leftover code from a previous implementation attempt or am I missing something?

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

      Indeed. Left over from a previous edit. :)

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

      Thank you. This was the only question I had too. =D

  • @JB-kn7ig
    @JB-kn7ig 2 роки тому

    Im using this for a project, but adding a target based on it's distance to the multitarget camera position. Trouble is, it snaps to position rather than smoothly transitioning. Its fine if I add the target when it's nearby, but the further away the more it jumps.

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

    yooo thanks! This works amazingly!

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

    Now that u mentioned multiplayer
    Could you make an online multi-player tutorial.
    Thanks for this tutorial btw

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

    I'm sure you get 100's of tutorial requests, but if you could make a tutorial on in-app purchases It would help so much.

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

    Simple, but very effective. Nice.

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

    Good job, keep going, and good luck for your projects.....kids can code is the place for all who won to make somthing with godot engine, and with gamedev.....good job keep going and good luck....i love to see more videos like this and i know how much work is need for one video....but good job keep going and good luck!!!!

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

    3D version of this?

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

    More recipes pls :) we need more people like you 😉

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

      What would you like to see?

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

      2d artificial intelligence, for example 😊

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

    how much is the width and height you are usin I am devolping this kind of game 2 players

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

      This is using the default 1024x600 window size.

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

    Uh how to set the limits of the camera?

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

      They can be set in the Inspector or via the properties in code. See docs.godotengine.org/en/latest/classes/class_camera2d.html

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

      @@Kidscancode thank you I will take actions as fast as I can to fix it

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

      @@Kidscancode Zoom does not respect limits on small maps.

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

    Great!

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

    i don t know why, but for me, it does not work !

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

    Can you please make a series on PyGame, I have completed all your PyGame Games and can't move on to Godot as my pc's graphics card doesn't support OpenGL, so can you please make a new series on PyGame... I will highly appreciate that if you do...

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

      All of my existing Pygame content is still valid, so I think it gives a good overview of how it works. I don't really do much with Pygame anymore, it's not particularly modern and hasn't been updated in a long time.

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

    Nice

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

    Very nicee

  • @itsME-dc4vm
    @itsME-dc4vm 4 роки тому +1

    Nice ;)

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

    Our code

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

    blues = CatJam

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

    See you guys in 5 months again.