Skip to content

Commit da17067

Browse files
committed
Platformer: Snap to slope
Otherwise the movement going down the slope is bumpy.
1 parent 5cf6658 commit da17067

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

game-03/main.tscn

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,8 @@ position = Vector2(1472, 256)
795795
position = Vector2(512, 448)
796796
collision_layer = 1
797797
collision_mask = 7
798+
floor_constant_speed = true
799+
floor_snap_length = 32.0
798800
speed = Vector2(250, 600)
799801

800802
[node name="Camera2D" type="Camera2D" parent="Player"]

0 commit comments

Comments
 (0)