forked from team-sg/hero-mark-2
changed slime hitbox
This commit is contained in:
parent
8e3817690c
commit
57db1e5327
1 changed files with 4 additions and 3 deletions
|
@ -28,7 +28,7 @@ animations = [ {
|
|||
} ]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=5]
|
||||
extents = Vector2( 5.5, 4.5 )
|
||||
extents = Vector2( 4, 4 )
|
||||
|
||||
[node name="Slime" type="Node2D" groups=["enemy"]]
|
||||
script = ExtResource( 4 )
|
||||
|
@ -36,15 +36,16 @@ blood = false
|
|||
|
||||
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
||||
material = SubResource( 1 )
|
||||
position = Vector2( 1, 3 )
|
||||
position = Vector2( 4, 3 )
|
||||
frames = SubResource( 4 )
|
||||
frame = 1
|
||||
playing = true
|
||||
|
||||
[node name="Hitbox" type="Area2D" parent="." groups=["enemy_hitbox"]]
|
||||
position = Vector2( -4, 0 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
|
||||
position = Vector2( 4.5, 3.5 )
|
||||
position = Vector2( 8, 4 )
|
||||
shape = SubResource( 5 )
|
||||
|
||||
[connection signal="area_entered" from="Hitbox" to="." method="_on_Hitbox_area_entered"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue