Smoother movement feel, plus landing/wrap sounds and splat particles #4
2 changed files with 3 additions and 3 deletions
|
|
@ -78,7 +78,7 @@ var wrapEntryLength := 0.0
|
|||
# we're on, a little way to each side of us. If one stops touching the surface,
|
||||
# there's an edge within edgeSensorRange on that side, and pressing into the
|
||||
# surface will slide over it onto the side of the platform.
|
||||
@export var edgeSensorRange := 24.0
|
||||
@export var edgeSensorRange := 12.0
|
||||
var wallFacingY := -1.0 # Which way we last moved along a wall (-1 is up).
|
||||
|
||||
# Holding at an edge: moving along a surface towards its edge stops at the edge,
|
||||
|
|
|
|||
|
|
@ -26,11 +26,11 @@ shape = SubResource("CircleShape2D_eovys")
|
|||
[node name="EdgeSensors" type="Node2D" parent="."]
|
||||
|
||||
[node name="LeftEdgeSensor" type="RayCast2D" parent="EdgeSensors"]
|
||||
position = Vector2(-24, 0)
|
||||
position = Vector2(-12, 0)
|
||||
target_position = Vector2(0, 14)
|
||||
|
||||
[node name="RightEdgeSensor" type="RayCast2D" parent="EdgeSensors"]
|
||||
position = Vector2(24, 0)
|
||||
position = Vector2(12, 0)
|
||||
target_position = Vector2(0, 14)
|
||||
|
||||
[node name="SplatParticles" type="CPUParticles2D" parent="."]
|
||||
|
|
|
|||
Loading…
Reference in a new issue