I tried to make a simplified version of the code in this video https://youtu.be/_AheThiIiyg?si=FrbpcDoR0N-zKo7E so I can use it for enemies that just wander. I'm trying to make a bird enemy without gravity that just goes back and forth between two points in the air. When i try to launch the game with this code, I get "invalid access to property or key 'flip_h' on a base object of type 'null instance'."
Here is the entire code I have. Is there anything I need to add or cut to make this work?:
🎮 Discover how to create smarter enemy AI in Godot using RayCast! 🕹️
In this video, I'll demonstrate how to utilize RayCast in the Godot Engine, so your enemies can detect and chase the player. I will walk you through the process of adding RayCast to an existing enemy in your game and explain all the key components.
Whether you're a beginner ...