Files
godot-demo-projects/mono/squash_the_creeps/Mob.tscn

69 lines
2.5 KiB
Plaintext

[gd_scene load_steps=6 format=3 uid="uid://c2umstx7btqjf"]
[ext_resource type="Script" uid="uid://b3tarlivf2ay2" path="res://Mob.cs" id="1_g64pt"]
[ext_resource type="PackedScene" uid="uid://dlo80ccya72eu" path="res://art/mob.glb" id="2_e23op"]
[sub_resource type="BoxShape3D" id="BoxShape3D_svwdt"]
size = Vector3(1.358, 1.088, 2.201)
[sub_resource type="Animation" id="Animation_t3png"]
resource_name = "float"
length = 1.2
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Pivot/Character:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0.3, 0.7, 1.2),
"transitions": PackedFloat32Array(0.420448, 2.07053, 1),
"update": 0,
"values": [Vector3(2.08165e-12, 0.33, 2.08165e-12), Vector3(2.08165e-12, 0.65, 2.08165e-12), Vector3(2.08165e-12, 0.35, 2.08165e-12)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Pivot/Character:rotation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0.1, 0.5, 1.2),
"transitions": PackedFloat32Array(0.420448, 0.450625, 1),
"update": 0,
"values": [Vector3(0, 0, 0), Vector3(0.139626, 3.48787e-16, 3.48787e-16), Vector3(-0.15708, 3.48787e-16, 3.48787e-16)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_sw56c"]
_data = {
&"float": SubResource("Animation_t3png")
}
[node name="Mob" type="CharacterBody3D" groups=["mob"]]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.08165e-12, 0.011, 2.08165e-12)
collision_layer = 2
collision_mask = 0
script = ExtResource("1_g64pt")
[node name="Pivot" type="Node3D" parent="."]
[node name="Character" parent="Pivot" instance=ExtResource("2_e23op")]
transform = Transform3D(1, -4.03349e-16, 3.44493e-16, 3.44493e-16, 0.987688, 0.156434, -4.03349e-16, -0.156434, 0.987688, 2.08165e-12, 0.35, 2.08165e-12)
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.08165e-12, 0.528, 2.08165e-12)
shape = SubResource("BoxShape3D_svwdt")
[node name="VisibleOnScreenNotifier3D" type="VisibleOnScreenNotifier3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.08165e-12, 0.062, 0.332)
aabb = AABB(-1.2, 0.251, -1.571, 2.41, 1.093, 3.172)
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
&"": SubResource("AnimationLibrary_sw56c")
}
autoplay = "float"
[connection signal="screen_exited" from="VisibleOnScreenNotifier3D" to="." method="OnVisibleOnScreenNotifierScreenExited"]