How to make a 2D RTS in Godot - Part 3 (Selecting Finished) [Fixed]

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

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

  • @charlesgaskin
    @charlesgaskin 9 หลายเดือนก่อน +2

    Thanks for another good tutorial - I've been enjoying going through after and commenting your code to make sure I understand what it's doing - a good example was the avoidance part in this vid, where (I think!) it's getting the average vector/centre of mass of all the units it needs to avoid, and then moving away on the opposite vector.

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

      Great job! Hope others see your comment so they can understand the code better!

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

    I like that you are doing an RTS tutorial. Not many of them out there. However, I find them a bit hard to follow. My suggestion is that you first give us a mental image of what you are trying to achieve.
    I learned a good mantra in the military for teaching new drills etcetera. Show, instruct, practice, practice, practice, test.
    First you show what kind of result you want from the lesson.
    Then you give instructions
    Run the drill/lesson over and over again.
    And finally you give a test to see if everyone has learned correctly.
    Maybe the whole thing isn't applicable to a youtube tutorial but the first two steps might help.
    Looking forward to seeing more from you.

    • @cosmicContender
      @cosmicContender  10 หลายเดือนก่อน +2

      This awesome feedback! Yes the big picture in this tutorial is really lacking and something I should improve. I can in the new videos show the outcome first and then get into the code. But yes you're correct it is something I am looking into doing with future tutorials especially series so viewers can see the overall goal.

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

    Hey buddy. Thanks for this! It's really good. Just a quick question. I have three units and I've noticed that they'll sometimes go off in random directions. I have a feeling it's because they can't give each other enough space so they just keep moving. Can you guess what the issue might be?

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

      Short answer is yes you are correct. I have been working on a better series for this in Godot but overall finding the RTS genre really difficult to polish. One decent solution is to have an internal timer that starts when they can seem to get to their location and their last position isn't much different since their current location from that last time the timer went off and do a counter and once the counter hits a threshold you just have them idle/stop after that.

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

      The better way to handle this is to have a group select manager function. The first unit to get to the target position will emit signal and it's position. Then the other units will change their target location based on the first units position and the size it takes up and the direction the current is coming from and that will help make the new target position.

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

    Muy buen video, muchas gracias por compartir!!

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

      De nada! Muchas gracias por tus comentarios!

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

    welp, now units don't move accurately to the point where you click. especially noticeable when you move only one unit at the time...

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

      I believe that is the distance to function that checks with the target. Let me know if you are seeing something else

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

    hi thank you so much for this unqiue series i followed evreything but instead of work like ur video the units didnt move and i didnt see the aqua color when select i need ur help plz

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

      It would be hard to say what the issue is. I am working on a new RTS series that will be more fleshed out and hopefully more explanatory on how the unit select and movement works. I can get my code/project for you so you can compare. It's just really hard to debug the issue without seeing what your project looks like.

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

      ​@@cosmicContender wow! im so excited to hear that ur working in new rts series bc there is no 2d rts tutorials in youtube and about ur project it well be very helpful if u can do that and i have little question can i give my friend the project he also intersest in rts games and thank you so much!

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

      @@WolfCodeDev github.com/CosmicGamesDev/2dRTSTut Just got off work here is the project files

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

      @@cosmicContender thank you so much