GDQuest / learn-gdscript

Learn Godot's GDScript programming language from zero, right in your browser, for free.
https://gdquest.github.io/learn-gdscript/
Other
2.11k stars 160 forks source link

lesson 22, turtle following mouse, stops at different distances from the edges #403

Closed duianto closed 2 years ago

duianto commented 2 years ago

Issue description:

In lesson 22: https://gdquest.github.io/learn-gdscript/staging/#course/lesson-22-functions-return-values/lesson.tres

In the example where the turtle follows the mouse. The turtle stops at different distances from the edges.

The red areas show where the turtle stops.

turtle stops at different distances from the edges

It might look better if the turtle stopped at the same distance from all edges.

Or if there's a margin to the left and right, that can't be reduced, then feel free to close this. This isn't important, it's just an observation.

NathanLovato commented 2 years ago

Yeah it's on purpose. It's a safe margin that should work with all app settings, like text sizes etc. We can likely add some code to make it look cleaner, it's just low priority.