camera smoothing only on y

This commit is contained in:
Jonas Braus
2024-08-05 00:19:18 +02:00
parent 6ef02c5628
commit a2f9549d15
17 changed files with 159 additions and 52 deletions
+3 -3
View File
@@ -16,9 +16,9 @@ func _on_body_entered(body):
func _process(delta):
if mover < 25:
collision_shape_2d.position.y += -1 if up else 1
animated_sprite_2d.position.y += -1 if up else 1
mover += 1
collision_shape_2d.position.y += -25 * delta if up else 25 * delta
animated_sprite_2d.position.y += -25 * delta if up else 25 * delta
mover += 25 * delta
func _on_timer_timeout():
innocent = false