A simple 2D character controller made by modifying the default platformer script to flip the character the correct direction, play correct animations while moving, falling etc., and include acceleration and deacceleration. We will use a cutout sprite with multiple parts and a skeleton and address how to flip a sprite with multiple parts. We will show the difference between lerp and move_toward and how they can be used to gradually slow down, speed up the character. You can see how to create a cutout sprite with skeletal animations in this video: kzitem.info/news/bejne/y4Way31tepd3p6Q
0:00 Intro
0:57 Add default script for platformer movement and explanation of script
2:40 Add custom inputs
3:28 Flip character when moving left
4:36 Add animations
6:33 Acceleration and deacceleration and lerp explained
7:48 Lerp vs Move Toward: the difference between lerp() and move_toward()
9:43 Multiplying by delta to make movement consistent with different computer speeds
Негізгі бет Ғылым және технология 2D Character Movement in Godot 4
Пікірлер: 6