How I made an RTS Camera on Godot 4 (Part 1) : Coding From Scratch - Making an RTS Series

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ก.ย. 2024

ความคิดเห็น • 27

  • @nakoskalmoukis1469
    @nakoskalmoukis1469 2 หลายเดือนก่อน +1

    Thank you for this treasure! Your hard work and dedication for this tutorial is very much appreciated and the final product is amazing. Keep up the great work man and great days are coming!

  • @kookiemunster-ni4yg
    @kookiemunster-ni4yg ปีที่แล้ว +5

    This is a nicely paced, to the point and really well presented walk-through/tutorial.
    Thank you for making this! I'm going to binge all your videos and work alongside them.
    And I wish you great success with the channel :)

  • @neptun3189
    @neptun3189 5 หลายเดือนก่อน

    the suzanne building is absolutely gold

  • @AdmiralA1
    @AdmiralA1 3 หลายเดือนก่อน +3

    This might have to do with the version of Godot I am using(Godot 4.2.2), but when I put in the code for the camera zoom, it crashed the test (I assume to it creating an infinite loop of sorts). Just wondering if there is anything I can change to fix this issue.
    Edit: I have been able to narrow it down to this being the problem line: var new_zoom:float = camera.position.z + cam_zoom_speed + cam_zoom_direction * delta

  • @MrReirgen
    @MrReirgen ปีที่แล้ว +1

    Thank for the tutorial, i really like the RTS games :D

  • @semtx13
    @semtx13 ปีที่แล้ว

    Just found your channel and so glad I did. I wanna make an rts game and with you I can. Thanks for making these videos.

  • @aligmayu5322
    @aligmayu5322 ปีที่แล้ว

    Great work bro exactly what i need please continue your tutorials

  • @DrNabeel20
    @DrNabeel20 10 หลายเดือนก่อน

    high quality tutorial! thank you :D

  • @akselst
    @akselst 11 หลายเดือนก่อน +1

    13:51 Adding the zoom functionality

  • @MrShaarkrat
    @MrShaarkrat 11 หลายเดือนก่อน

    Thanks for the tutorial! Could you share your test_building and test_Unit? I didn't learn how to draw/create them and I'll like to learn Godot before learning to do it!

    • @nanotechgamedev
      @nanotechgamedev  11 หลายเดือนก่อน +1

      I completely understand the need for the assets, but I don't want to give those ugly 3D models, I will be posting a free pack soon with more useful stuff to give a headstart in the project. But if you want something now, maybe you can search opensource assets? Like here:
      opengameart.org/art-search-advanced?keys=&field_art_type_tid%5B%5D=10&sort_by=count&sort_order=DESC
      There is some useful stuff in there, though you will probabilly need to find a suitable model to import in Godot, best format for Godot is .gltf or .glb, the video I did on exporting 3D models from Blender to Godot should allow you to export a gltf from Blender, if you want to: th-cam.com/video/L0XniwFQGNs/w-d-xo.html

  • @holygraphite1292
    @holygraphite1292 ปีที่แล้ว

    This is nice

  • @TheLestart
    @TheLestart หลายเดือนก่อน

    hi i have a little problem. i followed your tutorial step by step but i can`t get the zoom to work because the [var new_zoom:float = camera.position.z + camera_zoom_speed * camera_zoom_direction * delta ] is marked red and it says: error (56, 26) identifier "camera" not declared in the current scope. do you know what i made wrong becuase i am try to fix it for hours 😅
    Edit: found the solution it is Camera.position.z and not camer.position.z 🤣

    • @nanotechgamedev
      @nanotechgamedev  หลายเดือนก่อน +1

      IoI congrats on the debugging, sometimes the simple fact of spelling an error or asking/talking about it makes you notice something new, makes you start talking to yourself when you code

  • @Nalothisal
    @Nalothisal 2 หลายเดือนก่อน

    Followed the whole tutorial for the camera, and while it works perfectly, I feel like the keyboard panning is a bit sluggish than the mouse panning. Any advice?

    • @nanotechgamedev
      @nanotechgamedev  หลายเดือนก่อน

      If the function is running at _process() it shouldn't feel slugish, the code execution is 1 call per frame, now with input() or unhandled_input() some changes were made like with echo of pressed inputs, so you can swap the code from _unhandled_input to the _process() function and see how it behaves, Godot input handling has had some changes since this video was posted, on some cases there's even a delay of 0.5 or 1 second for the echo to be picked up and the function to start looping,

  • @holygraphite1292
    @holygraphite1292 ปีที่แล้ว

    You should also make a series of 2d game

  • @prideneverdies1001
    @prideneverdies1001 10 วันที่ผ่านมา

    how do i get the assets?

  • @Potatogoodyea
    @Potatogoodyea ปีที่แล้ว

    I have a problem with the movement, the camera will only move once when you press the key like it’s on the grid and you can’t hold it down to move.

    • @Potatogoodyea
      @Potatogoodyea ปีที่แล้ว

      i fixed it

    • @nanotechgamedev
      @nanotechgamedev  ปีที่แล้ว

      Anyone with similar issues, that may be because of pressed() vs released() functions.
      Check if your code is using for the input functions, is_action_pressed() or is_action_released(), the first one keeps checking while the last one will only register once.

  • @liyaxyii9438
    @liyaxyii9438 ปีที่แล้ว +1

    What godot theme is this?

    • @nanotechgamedev
      @nanotechgamedev  ปีที่แล้ว

      You like it? It's a custom one I made, here's a screenshot ( imgur.com/a/vKGE3mb ), Base color Hex = 3e4559, Accent color Hex = 80f4ff, contrast 0.25,

  • @sudedemir8444
    @sudedemir8444 11 หลายเดือนก่อน

    What is the code editor’s font?

    • @nanotechgamedev
      @nanotechgamedev  11 หลายเดือนก่อน +1

      Don't know if it is still the same as what I am using today, currently I am using JetBrainsMono-SemiBold size 17, you can download it from Google Fonts: fonts.google.com/specimen/JetBrains+Mono

    • @sudedemir8444
      @sudedemir8444 11 หลายเดือนก่อน

      @@nanotechgamedev Thank you.