How to Make NPC follow Player in Godot 4.0

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

КОМЕНТАРІ • 30

  • @IroquoisPliskin86
    @IroquoisPliskin86 6 місяців тому +3

    I was not expecting scary movie trailer voice when I clicked on this video.

  • @Akito3D
    @Akito3D 5 місяців тому +7

    -says pokémon
    *Nintendo: and i took that personally*

  • @chillseekerthechillseeker
    @chillseekerthechillseeker Рік тому +4

    Awesome stuff. I'll be using some of these tutorials for sure. I look forward to more!

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

      Thanks for the support!

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

      @@gamedevaki Dunno if I can do requests but I'd love to see how to do particles like explosions that also make light effects on the environment. Like a fireworks factory exploding with all different colours.

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

      @@chillseekerthechillseeker sure, I do have plans to make videos on particles, but it won't be coming that quickly

  • @agustinserrano2774
    @agustinserrano2774 Рік тому +3

    Such a nice tutorial. Very usefull. Good job

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

    Both my ears enjoy this useful piece of information ;)

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

      Thanks! Don't want the right ear to be lonely ;)

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

    Interesting! I would also curious to know how to extend this script for multiple following npc, similar to octopath traveler.

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

      You can just make the 3rd NPC follow the 2nd NPC, 4th NPC follows the 3rd NPC, and so on.

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

      @@gamedevaki Nice, thanks for the reply! By the way, i remember you mentioned you are working on your own game. I wonder is it some pokemon fan game, and all of your videos related to that project or not? Basically just curious what kind of game you make.

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

      @@ropepores4688 yeah, I'm trying to make a Pokemon inspired game. All my code are related to that. Ultimately, I want to pick up art skills to make my own assets.

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

      @@gamedevaki Cool, good luck!

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

    tu juego y tu contendio son oro muchas gracias

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

    how difficult is it to make a pokemon just move randomly around?

    • @gamedevaki
      @gamedevaki  Рік тому +3

      if you want it to move randomly around an area, you'll need to create a demarcation and get the points from that at random timing.
      I can make a follow up video for that later on

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

      @@gamedevaki I suggest you make a generic video - simple and accessible - so people wouldn't have to watch something else to understand this method - thanks

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

      @@sanyi9667 that's a good suggestion, thanks!

  • @ЛенарКаримов-я4ф
    @ЛенарКаримов-я4ф 6 місяців тому +1

    how did you write set_movement_target() in the physics process?
    I get an error: Function "set_movement_target()" not found in base self.

    • @timhehman8958
      @timhehman8958 4 місяці тому +2

      i think its another function he's referencing

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

    How would u do this for a 2d top down?

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

      would need some experimenting, but I think 2d navigation mesh and agent should work

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

    thanks for sharing, I like your art style/choice. Can you share where to get the sand and water asset?

    • @gamedevaki
      @gamedevaki  11 місяців тому

      Thanks! Actually, the sand and water are just plain albedo texture

  • @xiliangyao
    @xiliangyao 9 місяців тому +1

    So how should 2D NPCs follow? I mean 2D side scrolling game

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

      This tutorial is focused on a 3D setup. 2D games would require some tweaks, but there are Navigation Agents for 2D as well

  • @ЯрославЕмельянов-й8щ

    great vid