NPC Line of Sight Godot 2d Tutorial | The Combat Series #9 @GameDevelopmentCenter
NPC Line of Sight Godot 2d Tutorial | The Combat Series #9  @GameDevelopmentCenter
Uploaded November 2019 | Updated November 2026, 2 hours ago
In this Godot Beginner Tutorial, we will give our enemy NPC Line of Sight using the Space State functionality of Godot.

Timestamps:
00:00 Intro
01:04 Sight, Maximum Range, Node & Signals
02:47 Sight, Maximum Range, Code
05:55 Sight, Direct Line of Sight, Space State & Raycast
09:58 Sight, Direct Line of Sight, Player Verification

To first step to any NPC logic is making sure the enemy can 'see' the player. In this Godot 2d tutorial we will make use of an Area2d along with Space State and Raycasting to implement such a system. Giving the enemies sight and having them look for us will be the first step to do many more cool things in Godot.

⬧⬧⬧⬧⬧ GDC TUTORIALS ⬧⬧⬧⬧⬧
I believe educational material should be available to all, for free
Support this vision by joining the GDC-Club and get perks in return
youtube.com/c/gamedevelopmentcenter/join
patreon.com/gamedevelopmentcenter

⬧⬧⬧⬧⬧ LEARN MORE GAMEDEV ⬧⬧⬧⬧⬧
These books have helped me in my game design and programming, I whole fully recommend them to you!
Level Up! The Guide to Great Video Game Design ►► amzn.to/3hIg6dE
Game Programming Patterns ►► amzn.to/35IoDsH
The Art of Game Design: A Book of Lenses ►► amzn.to/35MSHoU

⬧⬧⬧⬧⬧ LIVESTREAMS ⬧⬧⬧⬧⬧
I Livestream game development twice a week right here on YouTube.
Subscribe and hit that Bell Icon to make sure you don't miss it!
youtube.com/c/GameDevelopmentCenter?sub_confirmation=1

Tuesday and Thursday
1900 to 2200 (GMT+1/2 (winter/summertime), that's;
1200 to 1500 (PST), or
1500 to 1800 (EST).

⬧⬧⬧⬧⬧ COMMUNITY & SOCIAL ⬧⬧⬧⬧⬧
Join the community! Follow me on Social!
DISCORD ►► discord.gg/DwcFXyS
TWITTER ►► twitter.com/GamedevStefan

⬧⬧⬧⬧⬧ ABOUT GDC ⬧⬧⬧⬧⬧
GDC, Game Development Center, was created to provide in-depth tutorials on game design theory and game development using the Godot Game Engine. I aim for multi-part Godot tutorials, allowing me to dive deeper into Godot's features.

⬧⬧⬧⬧⬧ ASSETS USED ⬧⬧⬧⬧⬧
https://www.kenney.nl/assets/isometric-dungeon-tiles
opengameart.org/content/flare-skeleton-mod-skeletal-occultist
opengameart.org/content/flare-skeleton-mod-skeletal-knight
opengameart.org/content/icicle-spell

⬧⬧⬧⬧⬧ DISCLAIMER ⬧⬧⬧⬧⬧
Some of these links go to one of my websites and some are affiliate links where I'll earn a small commission if you make a purchase at no additional cost or disadvantage to you. You will receive the same price and service.
NPC Line of Sight Godot 2d Tutorial | The Combat Series #9Stackable Items  | Godot Inventory TutorialMy 2020 Income & Communities | Indie Game Developer Journey | Money, Motivation, ManagementHow to Make an Enemy Shoot in Godot 3.2 | The Enemy Logic Series #1Drag and Drop Inventory System | Godot TutorialGodot Multiplayer Tutorial - Server-Side Collision Detection | Godot Dedicated Server #18Godot UI Tutorial | Godot Inventory System Part 1Godot Multiplayer Tutorial - How to Make a Server Map | Godot Dedicated Server #17Enemy AI, Return to Position [Godot 3.2] | The Enemy Logic Series #4Godot Multiplayer - DTLS Encryption with SSL Certificates | Godot Dedicated Server #7How to Make a Health Bar Godot 2d Tutorial | The Combat Series #3Hit Detection and Damage Handling Godot 2d Tutorial | The Combat Series #2
Game Development Center |

NPC Line of Sight Godot 2d Tutorial | The Combat Series #9

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER