Skip to content

Documentation issue: Mouse motion example problem #7399

@1Googol

Description

@1Googol

**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

Metadata

Metadata

Assignees

Labels

area:manualIssues and PRs related to the Manual/Tutorials section of the documentationbug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions