fix scale on hit the wall

This commit is contained in:
Nikolay Fedorov
2026-04-22 16:14:01 +03:00
parent cfc28168bc
commit 6aaa64ad7a
2 changed files with 7 additions and 9 deletions
+3
View File
@@ -268,6 +268,9 @@ func _spawn_upgraded_enemy(pos: Vector3, type: String, level: int, w: int) -> Ch
(col_shape.shape as BoxShape3D).size = old_size * s
var color := Color(1.0, 1.0, 0.5) if level > 2 else Color(1.0, 0.9, 0.3)
tw.tween_property(enemy.mat, "albedo_color", color, 0.25)
#var bs := scale
#tw.tween_property(enemy.mesh_node, "scale", Vector3(bs * 1.6, bs * 0.25, bs * 1.6), 0.07)
#tw.tween_property(enemy.mesh_node, "scale", Vector3(bs, bs, bs), 0.22)
return enemy
func _on_enemy_merged(_upgrade: bool) -> void: