How did the player in "Your first game" in godot docs move

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By AlnJse

Iam new to godot and have started to learn through godot docs. In the chapter “Your first game”
I dont understand how the player moves.Dont we have to use move_and_slide??

:bust_in_silhouette: Reply From: kidscancode

move_and_slide() is a function of KinematicBody2D. We are not using a KinematicBody2D for the player in this game.

The player object in “Dodge the Creeps” is an Area2D, and we move it by changing its position property.