Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

character jitter in PointAndClick2D when movement speed is high🐛 [bug] #53

Open
Mostafa137511 opened this issue Jul 19, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Mostafa137511
Copy link

Describe the bug

when you set the movement_speed too high the Character2D never stops moving and jitters, although NavigationAgent2D is finished navigating.

To Reproduce
Steps to reproduce the behavior:

  1. make Character2D move with the simple example the creator provided but set the speed high, for example 2000.
  2. character2D keeps moving

Expected behavior
i expected it to stop and not jitter

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: windows 11
  • Godot version 4.2.2

Additional context
i solved the problem with editing this part of code in the PointAndClick2D script (edited part in the qoutes):
func _physics_process(delta: float) -> void:
if not Engine.is_editor_hint() and automatic_movement "and !navigation_agent.is_navigation_finished()":
move_to_clicked_position()

Reproducible project
Attach a reproducibile project. Otherwise I'll look into the issue when I can.

@Mostafa137511 Mostafa137511 added the bug Something isn't working label Jul 19, 2024
@Mostafa137511
Copy link
Author

my first time submitting an issue, laugh if you want

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants