camera smoothing only on y
This commit is contained in:
1 parent
6ef02c5628
commit
a2f9549d15
17 files changed
+159
-52
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user