Create a Top-Down Character & Car Controller

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

КОМЕНТАРІ • 7

  • @KyleeYay
    @KyleeYay 7 місяців тому +1

    Source code? perhaps?

    • @-RedIndieGames
      @-RedIndieGames  7 місяців тому +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 7 місяців тому

      @@-RedIndieGames Thanks

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

    Thanks for this, really helped!!!

    • @-RedIndieGames
      @-RedIndieGames  7 місяців тому +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 7 місяців тому +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  7 місяців тому

      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!