Looks like you're not logged in

Login or Register to continue

Lesson Q&A

Use this space for questions related to what you're learning. For any other type of support (website, learning platform, payments, etc...) please get in touch using the contact form.

  • How do you solve this?ArtemaleI am learning 2D pathfinding and navigation. And I've got a problem: [https://youtu.be/Wy0waehi4EU?si=MlQaGztRajkXbFmn](https://youtu.be/Wy0waehi4EU?si=MlQaGztRajkXbFmn) If I set_collision_mask of "units" to false it does reaches the navigation_agent.target_position but visually it becomes one unit and if I turn set_collision_mask back to true it does not push other units. That's visually not optimal anyway. Then I tried to create Area2D around the Unit. To check for bodies in area. ```gdscript func _on_stuck_area_body_entered(body: CharacterBody2D) -> void: if body.current_state == UnitState.IDLE and body != self: nav_agent.target_desired_distance = 150.0 ``` Note: default target_desired_distance = 10.0 So it worked but only for the first target_position. I am having tough times switching it back to default target_desired_distance and restart checking the Area. And it feels there are better ways to solve this. 1 0 Apr. 09, 2025
  • handwrite your codeCelsHey guys, I’m on my way to becoming a pro game developer in no time! Want to know the secret to getting there faster? It’s simple—handwrite your code. There’s something powerful about physically writing down useful code. It forces you to slow down, absorb the logic, and truly understand what you're doing rather than just copy-pasting from tutorials. Writing by hand strengthens memory, helps you recognize patterns, and deepens your problem-solving skills. Thanks for reading 1 0 Apr. 02, 2025
  • missing contentMarcJThere seems to be some content missing under the dropdown : "[This diagram shows the mouse cursor's position in both world and grid coordinates.](https://school.gdquest.com/courses/learn_2d_gamedev_godot_4/tower_defense_upgrades/introduction_to_pathfinding#)" 1 0 Mar. 30, 2025
Site is in BETA!found a bug?