Boss healthbar
This commit is contained in:
@@ -10,7 +10,7 @@ albedo_color = Color(0.584314, 0.0352941, 0.141176, 1)
|
||||
material = SubResource("StandardMaterial3D_phgri")
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_rokeu"]
|
||||
radius = 0.8
|
||||
radius = 0.2
|
||||
|
||||
[node name="TestBullet" type="Node3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.538645, 0)
|
||||
@@ -22,9 +22,8 @@ _projectileSpeed = 15.0
|
||||
collision_layer = 34
|
||||
collision_mask = 32
|
||||
gravity_scale = 0.0
|
||||
custom_integrator = true
|
||||
continuous_cd = true
|
||||
max_contacts_reported = 10
|
||||
max_contacts_reported = 1000
|
||||
contact_monitor = true
|
||||
can_sleep = false
|
||||
|
||||
@@ -34,12 +33,17 @@ mesh = SubResource("SphereMesh_wuk0e")
|
||||
skeleton = NodePath("../..")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="RigidBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0905764, 0, 0)
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0054872, -0.00215495, 0.0167444)
|
||||
shape = SubResource("SphereShape3D_rokeu")
|
||||
|
||||
[node name="Sprite3D" type="Sprite3D" parent="RigidBody3D"]
|
||||
pixel_size = 0.05
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00168204, -0.0587139, 0)
|
||||
axis = 1
|
||||
texture = ExtResource("2_n5c16")
|
||||
|
||||
[node name="TTL" type="Timer" parent="."]
|
||||
process_callback = 0
|
||||
autostart = true
|
||||
|
||||
[connection signal="body_entered" from="RigidBody3D" to="." method="OnBulletHitObject"]
|
||||
[connection signal="timeout" from="TTL" to="." method="OnTimeToLiveTimeout"]
|
||||
|
||||
Reference in New Issue
Block a user