summaryrefslogtreecommitdiff
path: root/client/player/player.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/player/player.gd')
-rw-r--r--client/player/player.gd5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/player/player.gd b/client/player/player.gd
index 84b40789..c314dad2 100644
--- a/client/player/player.gd
+++ b/client/player/player.gd
@@ -78,6 +78,8 @@ func _init(_id: int, new_name: String, pos: Vector2, new_character_idx: int, new
character_idx = new_character_idx
is_customer = character_idx < 0
+ movement_base.scale = Vector3.ONE * 0.0001
+
func _ready():
character.set_style(character_idx)
clear_timer.timeout.connect(clear_message)
@@ -98,7 +100,7 @@ func set_item(i: Item):
if hand != null: hand.remove()
if i != null:
@warning_ignore("static_called_on_instance")
- hand_base_position = DEFAULT_HAND_BASE_POSITION - Vector3(0., i.height() * 0.5, 0.)
+ hand_base_position = DEFAULT_HAND_BASE_POSITION - Vector3(0.,i.height() * 0.5, 0.)
character.holding = i != null
hand = i
if hand != null: hand.owned_by = hand_base
@@ -145,6 +147,7 @@ func _process(delta):
character.walking = walking
character.boosting = boosting
walking = false
+ movement_base.scale = Vector3.ONE * G.interpolate(movement_base.scale.x, 1, delta * 8)
func clear_message():
item_bubble.remove_item()