Demo: Fix ninja star
This commit is contained in:
parent
cd4e28f391
commit
e09928f87f
|
@ -31,10 +31,6 @@ texture = ExtResource("2_bvbes")
|
||||||
[node name="HandR" parent="Root/Rig/Body" index="2"]
|
[node name="HandR" parent="Root/Rig/Body" index="2"]
|
||||||
texture = ExtResource("2_bvbes")
|
texture = ExtResource("2_bvbes")
|
||||||
|
|
||||||
[node name="WeaponNinjaStar" parent="Root" index="1"]
|
|
||||||
position = Vector2(-55, -76)
|
|
||||||
rotation = 0.0
|
|
||||||
|
|
||||||
[node name="Health" parent="." index="3"]
|
[node name="Health" parent="." index="3"]
|
||||||
max_health = 3.0
|
max_health = 3.0
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ texture = ExtResource("2_y7pic")
|
||||||
[node name="HandR" parent="Root/Rig/Body" index="2"]
|
[node name="HandR" parent="Root/Rig/Body" index="2"]
|
||||||
texture = ExtResource("2_y7pic")
|
texture = ExtResource("2_y7pic")
|
||||||
|
|
||||||
[node name="Hitbox" parent="Root" index="2"]
|
[node name="Hitbox" parent="Root" index="1"]
|
||||||
damage = 2.0
|
damage = 2.0
|
||||||
|
|
||||||
[node name="Health" parent="." index="3"]
|
[node name="Health" parent="." index="3"]
|
||||||
|
|
|
@ -41,10 +41,6 @@ texture = ExtResource("2_w8tqw")
|
||||||
[node name="HandR" parent="Root/Rig/Body" index="2"]
|
[node name="HandR" parent="Root/Rig/Body" index="2"]
|
||||||
texture = ExtResource("2_w8tqw")
|
texture = ExtResource("2_w8tqw")
|
||||||
|
|
||||||
[node name="WeaponNinjaStar" parent="Root" index="1"]
|
|
||||||
position = Vector2(-55, -76)
|
|
||||||
rotation = 0.0
|
|
||||||
|
|
||||||
[node name="Health" parent="." index="3"]
|
[node name="Health" parent="." index="3"]
|
||||||
max_health = 7.0
|
max_health = 7.0
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,11 @@ var/speed/type = 3
|
||||||
var/speed/value = 400.0
|
var/speed/value = 400.0
|
||||||
var/speed/hint = 1
|
var/speed/hint = 1
|
||||||
var/speed/hint_string = "10,1000,10"
|
var/speed/hint_string = "10,1000,10"
|
||||||
|
var/run_speed/name = "run_speed"
|
||||||
|
var/run_speed/type = 3
|
||||||
|
var/run_speed/value = 600.0
|
||||||
|
var/run_speed/hint = 1
|
||||||
|
var/run_speed/hint_string = "10,1000,10"
|
||||||
|
|
||||||
[node name="AgentRanged" instance=ExtResource("1_oa4xm")]
|
[node name="AgentRanged" instance=ExtResource("1_oa4xm")]
|
||||||
|
|
||||||
|
@ -31,10 +36,6 @@ texture = ExtResource("2_37lvn")
|
||||||
[node name="HandR" parent="Root/Rig/Body" index="2"]
|
[node name="HandR" parent="Root/Rig/Body" index="2"]
|
||||||
texture = ExtResource("2_37lvn")
|
texture = ExtResource("2_37lvn")
|
||||||
|
|
||||||
[node name="WeaponNinjaStar" parent="Root" index="1"]
|
|
||||||
position = Vector2(-55, -76)
|
|
||||||
rotation = 0.0
|
|
||||||
|
|
||||||
[node name="Health" parent="." index="3"]
|
[node name="Health" parent="." index="3"]
|
||||||
max_health = 6.0
|
max_health = 6.0
|
||||||
|
|
||||||
|
|
|
@ -36,11 +36,6 @@ texture = ExtResource("2_4rqld")
|
||||||
[node name="HandR" parent="Root/Rig/Body" index="2"]
|
[node name="HandR" parent="Root/Rig/Body" index="2"]
|
||||||
texture = ExtResource("2_4rqld")
|
texture = ExtResource("2_4rqld")
|
||||||
|
|
||||||
[node name="WeaponNinjaStar" parent="Root" index="1"]
|
|
||||||
position = Vector2(-55, -76)
|
|
||||||
rotation = 0.0
|
|
||||||
scale = Vector2(0.999983, 0.999976)
|
|
||||||
|
|
||||||
[node name="Health" parent="." index="3"]
|
[node name="Health" parent="." index="3"]
|
||||||
max_health = 6.0
|
max_health = 6.0
|
||||||
|
|
||||||
|
|
|
@ -36,10 +36,6 @@ texture = ExtResource("2_e51r0")
|
||||||
[node name="HandR" parent="Root/Rig/Body" index="2"]
|
[node name="HandR" parent="Root/Rig/Body" index="2"]
|
||||||
texture = ExtResource("2_e51r0")
|
texture = ExtResource("2_e51r0")
|
||||||
|
|
||||||
[node name="WeaponNinjaStar" parent="Root" index="1"]
|
|
||||||
position = Vector2(-55, -76)
|
|
||||||
rotation = 0.0
|
|
||||||
|
|
||||||
[node name="Health" parent="." index="3"]
|
[node name="Health" parent="." index="3"]
|
||||||
max_health = 6.0
|
max_health = 6.0
|
||||||
|
|
||||||
|
|
|
@ -31,10 +31,6 @@ texture = ExtResource("2_cb5f2")
|
||||||
[node name="HandR" parent="Root/Rig/Body" index="2"]
|
[node name="HandR" parent="Root/Rig/Body" index="2"]
|
||||||
texture = ExtResource("2_cb5f2")
|
texture = ExtResource("2_cb5f2")
|
||||||
|
|
||||||
[node name="WeaponNinjaStar" parent="Root" index="1"]
|
|
||||||
position = Vector2(-55, -76)
|
|
||||||
rotation = 0.0
|
|
||||||
|
|
||||||
[node name="Health" parent="." index="3"]
|
[node name="Health" parent="." index="3"]
|
||||||
max_health = 8.0
|
max_health = 8.0
|
||||||
|
|
||||||
|
|
|
@ -36,10 +36,6 @@ texture = ExtResource("2_fcti4")
|
||||||
[node name="HandR" parent="Root/Rig/Body" index="2"]
|
[node name="HandR" parent="Root/Rig/Body" index="2"]
|
||||||
texture = ExtResource("2_fcti4")
|
texture = ExtResource("2_fcti4")
|
||||||
|
|
||||||
[node name="WeaponNinjaStar" parent="Root" index="1"]
|
|
||||||
position = Vector2(-55, -76)
|
|
||||||
rotation = 0.0
|
|
||||||
|
|
||||||
[node name="Health" parent="." index="3"]
|
[node name="Health" parent="." index="3"]
|
||||||
max_health = 8.0
|
max_health = 8.0
|
||||||
|
|
||||||
|
|
|
@ -378,7 +378,7 @@ tracks/24/keys = {
|
||||||
tracks/25/type = "value"
|
tracks/25/type = "value"
|
||||||
tracks/25/imported = false
|
tracks/25/imported = false
|
||||||
tracks/25/enabled = true
|
tracks/25/enabled = true
|
||||||
tracks/25/path = NodePath("Root/WeaponNinjaStar:visible")
|
tracks/25/path = NodePath("Root/Rig/Body/HandL/WeaponNinjaStar:visible")
|
||||||
tracks/25/interp = 1
|
tracks/25/interp = 1
|
||||||
tracks/25/loop_wrap = true
|
tracks/25/loop_wrap = true
|
||||||
tracks/25/keys = {
|
tracks/25/keys = {
|
||||||
|
@ -2321,7 +2321,7 @@ tracks/23/keys = {
|
||||||
tracks/24/type = "value"
|
tracks/24/type = "value"
|
||||||
tracks/24/imported = false
|
tracks/24/imported = false
|
||||||
tracks/24/enabled = true
|
tracks/24/enabled = true
|
||||||
tracks/24/path = NodePath("Root/WeaponNinjaStar:visible")
|
tracks/24/path = NodePath("Root/Rig/Body/HandL/WeaponNinjaStar:visible")
|
||||||
tracks/24/interp = 1
|
tracks/24/interp = 1
|
||||||
tracks/24/loop_wrap = true
|
tracks/24/loop_wrap = true
|
||||||
tracks/24/keys = {
|
tracks/24/keys = {
|
||||||
|
@ -2870,7 +2870,7 @@ tracks/20/keys = {
|
||||||
tracks/21/type = "value"
|
tracks/21/type = "value"
|
||||||
tracks/21/imported = false
|
tracks/21/imported = false
|
||||||
tracks/21/enabled = true
|
tracks/21/enabled = true
|
||||||
tracks/21/path = NodePath("Root/WeaponNinjaStar:visible")
|
tracks/21/path = NodePath("Root/Rig/Body/HandL/WeaponNinjaStar:visible")
|
||||||
tracks/21/interp = 1
|
tracks/21/interp = 1
|
||||||
tracks/21/loop_wrap = true
|
tracks/21/loop_wrap = true
|
||||||
tracks/21/keys = {
|
tracks/21/keys = {
|
||||||
|
@ -3835,7 +3835,7 @@ tracks/20/keys = {
|
||||||
tracks/21/type = "value"
|
tracks/21/type = "value"
|
||||||
tracks/21/imported = false
|
tracks/21/imported = false
|
||||||
tracks/21/enabled = true
|
tracks/21/enabled = true
|
||||||
tracks/21/path = NodePath("Root/WeaponNinjaStar:visible")
|
tracks/21/path = NodePath("Root/Rig/Body/HandL/WeaponNinjaStar:visible")
|
||||||
tracks/21/interp = 1
|
tracks/21/interp = 1
|
||||||
tracks/21/loop_wrap = true
|
tracks/21/loop_wrap = true
|
||||||
tracks/21/keys = {
|
tracks/21/keys = {
|
||||||
|
@ -4105,14 +4105,14 @@ tracks/20/keys = {
|
||||||
tracks/21/type = "value"
|
tracks/21/type = "value"
|
||||||
tracks/21/imported = false
|
tracks/21/imported = false
|
||||||
tracks/21/enabled = true
|
tracks/21/enabled = true
|
||||||
tracks/21/path = NodePath("Root/WeaponNinjaStar:visible")
|
tracks/21/path = NodePath("Root/Rig/Body/HandL/WeaponNinjaStar:visible")
|
||||||
tracks/21/interp = 1
|
tracks/21/interp = 1
|
||||||
tracks/21/loop_wrap = true
|
tracks/21/loop_wrap = true
|
||||||
tracks/21/keys = {
|
tracks/21/keys = {
|
||||||
"times": PackedFloat32Array(0, 0.2),
|
"times": PackedFloat32Array(0, 0.2),
|
||||||
"transitions": PackedFloat32Array(1, 1),
|
"transitions": PackedFloat32Array(1, 1),
|
||||||
"update": 1,
|
"update": 1,
|
||||||
"values": [true, false]
|
"values": [true, true]
|
||||||
}
|
}
|
||||||
|
|
||||||
[sub_resource type="Animation" id="Animation_fh06e"]
|
[sub_resource type="Animation" id="Animation_fh06e"]
|
||||||
|
@ -4443,9 +4443,9 @@ texture = ExtResource("1_1u51b")
|
||||||
region_enabled = true
|
region_enabled = true
|
||||||
region_rect = Rect2(111.022, 6.27016, 27.6329, 27.1423)
|
region_rect = Rect2(111.022, 6.27016, 27.6329, 27.1423)
|
||||||
|
|
||||||
[node name="RemoteTransform2D" type="RemoteTransform2D" parent="Root/Rig/Body/HandL"]
|
[node name="WeaponNinjaStar" type="Sprite2D" parent="Root/Rig/Body/HandL"]
|
||||||
remote_path = NodePath("../../../../WeaponNinjaStar")
|
visible = false
|
||||||
update_scale = false
|
texture = ExtResource("4_1c5xq")
|
||||||
|
|
||||||
[node name="HandR" type="Sprite2D" parent="Root/Rig/Body"]
|
[node name="HandR" type="Sprite2D" parent="Root/Rig/Body"]
|
||||||
show_behind_parent = true
|
show_behind_parent = true
|
||||||
|
@ -4454,12 +4454,6 @@ texture = ExtResource("1_1u51b")
|
||||||
region_enabled = true
|
region_enabled = true
|
||||||
region_rect = Rect2(111, 34, 26.9272, 26.6298)
|
region_rect = Rect2(111, 34, 26.9272, 26.6298)
|
||||||
|
|
||||||
[node name="WeaponNinjaStar" type="Sprite2D" parent="Root"]
|
|
||||||
visible = false
|
|
||||||
position = Vector2(-55, -76)
|
|
||||||
scale = Vector2(0.999982, 0.999981)
|
|
||||||
texture = ExtResource("4_1c5xq")
|
|
||||||
|
|
||||||
[node name="Hitbox" type="Area2D" parent="Root"]
|
[node name="Hitbox" type="Area2D" parent="Root"]
|
||||||
position = Vector2(50, 0)
|
position = Vector2(50, 0)
|
||||||
collision_layer = 0
|
collision_layer = 0
|
||||||
|
|
|
@ -16,16 +16,13 @@ collision_mask = 1
|
||||||
script = ExtResource("2_24nyi")
|
script = ExtResource("2_24nyi")
|
||||||
dodge_cooldown = 0.4
|
dodge_cooldown = 0.4
|
||||||
|
|
||||||
[node name="WeaponNinjaStar" parent="Root" index="1"]
|
[node name="Hitbox" parent="Root" index="1"]
|
||||||
scale = Vector2(0.999983, 0.999974)
|
|
||||||
|
|
||||||
[node name="Hitbox" parent="Root" index="2"]
|
|
||||||
collision_mask = 8
|
collision_mask = 8
|
||||||
|
|
||||||
[node name="HitboxCollisionShape2D" parent="Root/Hitbox" index="0"]
|
[node name="HitboxCollisionShape2D" parent="Root/Hitbox" index="0"]
|
||||||
shape = SubResource("RectangleShape2D_8pofm")
|
shape = SubResource("RectangleShape2D_8pofm")
|
||||||
|
|
||||||
[node name="Hurtbox" parent="Root" index="3"]
|
[node name="Hurtbox" parent="Root" index="2"]
|
||||||
collision_layer = 4
|
collision_layer = 4
|
||||||
|
|
||||||
[node name="Health" parent="." index="3"]
|
[node name="Health" parent="." index="3"]
|
||||||
|
|
Loading…
Reference in New Issue