fixed slime collision issues

This commit is contained in:
2023-02-26 19:02:14 +01:00
parent a118a259c9
commit a94ee84718
2 changed files with 6 additions and 1 deletions

View File

@@ -11,6 +11,9 @@ var motion = Vector2.ZERO
var player = null
func _ready():
$animated_sprite_2d.play()
func _physics_process(_delta):
motion = Vector2.ZERO
if player:
@@ -65,6 +68,8 @@ height = 56.0
radius = 440.41
[node name="slime" type="CharacterBody2D"]
collision_layer = 9
collision_mask = 8
script = SubResource("GDScript_78jn1")
[node name="animated_sprite_2d" type="AnimatedSprite2D" parent="."]