From 5c722e926f04f7d81dcb235d11dda3eff1545f76 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 11 Jul 2024 17:17:38 +0200 Subject: slower anim of non-player owned items and fix static call to interpolation functions. --- client/map/items/item.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client/map/items') diff --git a/client/map/items/item.gd b/client/map/items/item.gd index 466348fe..a42edc39 100644 --- a/client/map/items/item.gd +++ b/client/map/items/item.gd @@ -44,7 +44,8 @@ func _ready(): position = owned_by.global_position func _process(delta): - position = Global.interpolate(position, owned_by.global_position, delta * 30.0) + var ispeed = 30.0 if owned_by.get_parent().get_parent() is Player else 10. + position = G.interpolate(position, owned_by.global_position, delta * ispeed) func progress(p: float, warn: bool): progress_instance.visible = true -- cgit v1.2.3-70-g09d2