HITBOX 360
This commit is contained in:
@@ -84,9 +84,9 @@ func endAttack():
|
||||
animatedSprite.play("default")
|
||||
|
||||
func receive_damage(dmg):
|
||||
print(currentHp - dmg)
|
||||
if !isAlive:
|
||||
return
|
||||
|
||||
if currentHp - dmg <= 0:
|
||||
currentHp = 0
|
||||
call_deferred("die")
|
||||
|
||||
@@ -364,7 +364,6 @@ _data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(0.0153061, 183.158), 0.0, 0.0, 0
|
||||
point_count = 3
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_p2hkm"]
|
||||
height = 38.0
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_qykhm"]
|
||||
radius = 16.0
|
||||
@@ -429,6 +428,7 @@ color = Color(1, 1, 1, 0.423529)
|
||||
[node name="LvlUpSnd" type="AudioStreamPlayer2D" parent="."]
|
||||
|
||||
[node name="CharacterCollision" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, -4)
|
||||
shape = SubResource("CapsuleShape2D_p2hkm")
|
||||
|
||||
[node name="AttackArea" type="Area2D" parent="."]
|
||||
@@ -436,28 +436,28 @@ collision_layer = 2
|
||||
collision_mask = 2
|
||||
|
||||
[node name="Attack1CollisionR" type="CollisionShape2D" parent="AttackArea"]
|
||||
position = Vector2(3, -7)
|
||||
position = Vector2(3, -4)
|
||||
rotation = 1.5708
|
||||
skew = 0.223402
|
||||
shape = SubResource("CapsuleShape2D_qykhm")
|
||||
debug_color = Color(0.956863, 0.203922, 0, 0.419608)
|
||||
|
||||
[node name="Attack1CollisionL" type="CollisionShape2D" parent="AttackArea"]
|
||||
position = Vector2(-3, -7)
|
||||
position = Vector2(-3, -4)
|
||||
rotation = 1.5708
|
||||
skew = -0.169297
|
||||
shape = SubResource("CapsuleShape2D_qykhm")
|
||||
debug_color = Color(0.956863, 0.203922, 0, 0.419608)
|
||||
|
||||
[node name="Attack2CollisionR" type="CollisionShape2D" parent="AttackArea"]
|
||||
position = Vector2(25, -7)
|
||||
position = Vector2(15, -3)
|
||||
rotation = 1.5708
|
||||
skew = 0.0837758
|
||||
shape = SubResource("CapsuleShape2D_qykhm")
|
||||
debug_color = Color(0.956863, 0.203922, 0, 0.419608)
|
||||
|
||||
[node name="Attack2CollisionL" type="CollisionShape2D" parent="AttackArea"]
|
||||
position = Vector2(-25, -7)
|
||||
position = Vector2(-15, -3)
|
||||
rotation = 1.5708
|
||||
skew = -0.0837758
|
||||
shape = SubResource("CapsuleShape2D_qykhm")
|
||||
|
||||
Reference in New Issue
Block a user