-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Description
**Your Godot version:**v4.0.3.stable.official [5222a99f5]
**Issue description:**The example GDScript code of Mouse motin doesn't work well if position of node is not equal to global_position at the begining.Is there any other considers ?Or replace "$Sprite2D.position" with "$Sprite2D.global_position" is a better idea
**URL to the documentation page:**https://docs.godotengine.org/en/4.0/tutorials/inputs/input_examples.html#mouse-events
If you know how to fix the issue you are reporting please
consider opening a pull request. We provide a tutorial on
using git here: https://docs.godotengine.org/en/stable/community/contributing/pr_workflow.html,
writing documentation at https://docs.godotengine.org/en/stable/community/contributing/docs_writing_guidelines.html
and contributing to the class reference here: https://docs.godotengine.org/en/stable/community/contributing/updating_the_class_reference.html