Create a Top-Down Character & Car Controller

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 มิ.ย. 2024
  • Embark on a journey through the Godot Engine as we delve into the art of character and vehicle movement. This tutorial is your hands-on guide to creating seamless and dynamic top-down character navigation and car steering techniques in your games. Whether you're a beginner looking to grasp Godot's fundamental mechanics or an enthusiast aiming to level up your game development skills, this video is tailored just for you! This is my first ever tutorial, wanted to start small. Let me know what I could have done better.
    I harness the wisdom from the magicians at KidsCanCode for our car controller code. Explore their enlightening resources right here: kidscancode.org/godotrecipes/...
    💡 In this video you will learn how to:
    0:00 Create a top-down player character controller
    04:18 Design a car controller that includes acceleration, steering, and braking.
    📣 Questions or Feedback?
    Got a question about today's tutorial or a request for future content? Drop your thoughts in the comments below, and I'll make sure to get back to you!
    🙌 Support My Channel:
    Please consider subscribing for more Game dev and Godot content, hit the like button to support the channel, and share this video with other passionate game developers!
    SOURCE CODE:
    github.com/POWERHACK69/2D-Top...
  • เกม

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

  • @KyleeYay
    @KyleeYay 23 วันที่ผ่านมา

    Source code? perhaps?

    • @-RedIndieGames
      @-RedIndieGames  23 วันที่ผ่านมา +1

      Thanks alot! I have added a link to the source code in the video's description. Here is the source code:
      github.com/POWERHACK69/2D-Topdown-Movement-and-Car

    • @lesca6461
      @lesca6461 22 วันที่ผ่านมา

      @@-RedIndieGames Thanks

  • @princessportsassociation5958
    @princessportsassociation5958 23 วันที่ผ่านมา

    Thanks for this, really helped!!!

    • @-RedIndieGames
      @-RedIndieGames  23 วันที่ผ่านมา +1

      Thanks. The tutorial is not as good as I would have liked. It's my first, the next ones will be better!

  • @alexxander7289
    @alexxander7289 17 วันที่ผ่านมา +1

    you could have spent another 2 minutes going over the calculate_steering() and apply_friction() functions.
    some newer people might find the hard to follow the creation of the car script.
    ALSO, you didnt show the Camera2D setup or add this is_active boolean var in the Car script.
    I understood add a Camera2D to your car. but why are you using the variable is_active ?
    you could do a followup and maybe show how to get in/out of vehicle ?
    also, what about adding "gears" ? 1st, 2nd, 3rd and 4th ?
    that would be interesting.

    • @-RedIndieGames
      @-RedIndieGames  16 วันที่ผ่านมา

      Hello! The 'is_active' var was to disable and enable the movement of the car because it uses the same key mapping as the player. I didn't realise I had overlooked it. Thanks for pointing this out!
      I will be making a follow-up to this video (after I am done with the current one I'm working on) going into detail about the car controller and implementing a get in/out mechanic just like in GTA1.
      Thanks for the feedback. Stay tuned!