aboutsummaryrefslogtreecommitdiff
path: root/client/map/items/item.gd
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-07-11 17:17:38 +0200
committermetamuffin <metamuffin@disroot.org>2024-07-11 17:17:38 +0200
commit5c722e926f04f7d81dcb235d11dda3eff1545f76 (patch)
treeaea0c1f5a344e37b625f755eabded59179bf1b88 /client/map/items/item.gd
parent2537e764a359328870c3eabb16ee5238becd3c73 (diff)
downloadhurrycurry-5c722e926f04f7d81dcb235d11dda3eff1545f76.tar
hurrycurry-5c722e926f04f7d81dcb235d11dda3eff1545f76.tar.bz2
hurrycurry-5c722e926f04f7d81dcb235d11dda3eff1545f76.tar.zst
slower anim of non-player owned items and fix static call to interpolation functions.
Diffstat (limited to 'client/map/items/item.gd')
-rw-r--r--client/map/items/item.gd3
1 files changed, 2 insertions, 1 deletions
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