godotengine / godotengine/godot-docs

2D Movement tutorial - doesn't talk about movement

Open
#4,488 2 comments 0 reactions 0 assignees View on GitHub
area:manual enhancement
Dominant language
reStructuredText
Stars
5.7k
Forks
3.8k
Avg merge
1d 20h
Merged PRs (30d)
25

Description

https://docs.godotengine.org/en/stable/tutorials/2d/2d_movement.html

On that entire tutorial there isn't a single line that actually talks about the actual movement methods or how to make stuff move!

The closest it gets is: "We'll use KinematicBody2D for these examples", but that seems to defeat part of the point of the tutorial as `move_and_slide` is documented in there, with no mention of it or what it does whatsoever in the "movement" tutorial.

The tutorial does do a good job of covering the input handling components.

---
Also the code examples would benefit from comments - https://github.com/godotengine/godot-docs/issues/4188 - For example, why `velocity` is declared as a script global but then redeclared to equal the exact same thing at the start of the `get_input` method? I assume it's to reset it to 0, but that's non-obvious, even to me as an experienced (non-godot) coder, especially as the examples all assign the output of `move_and_slide` to velocity.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.