marcher: nombre fixe de frames pour marcher

Reproductible et à pas fixe. Toujours le même temps pour accélérer et
décélérer. Si c'est pas beau ça!
This commit is contained in:
Thomas Lavocat
2023-04-21 17:28:21 +02:00
parent 12380cb3ac
commit 3f3666d2a5
2 changed files with 61 additions and 30 deletions

View File

@@ -201,10 +201,11 @@ height = 52.0
[node name="Princesse" type="CharacterBody2D"]
script = ExtResource("1_dkp7s")
WALKING_SPEED = 100
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_q52wx")
animation = &"idle"
animation = &"wall_stick"
[node name="PlatformDetector" type="RayCast2D" parent="."]
collision_mask = 8