55 lines
2.5 KiB
Text
55 lines
2.5 KiB
Text
[gd_scene load_steps=11 format=3 uid="uid://dlpr8asp0m21a"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://cg7vjpjmg60ti" path="res://vole.glb" id="1_fw737"]
|
|
[ext_resource type="Script" uid="uid://dxdgep3hm0i8d" path="res://vole.gd" id="2_6xove"]
|
|
[ext_resource type="Script" uid="uid://bufpuqvrhkv8t" path="res://area_3d.gd" id="3_ldwnh"]
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_6xove"]
|
|
animation = &"Idle"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_ldwnh"]
|
|
animation = &"Walk2"
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_b8ce1"]
|
|
advance_mode = 2
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_qawrn"]
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_xxacn"]
|
|
|
|
[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_fw737"]
|
|
states/Idle/node = SubResource("AnimationNodeAnimation_6xove")
|
|
states/Idle/position = Vector2(532, 98)
|
|
states/Walk/node = SubResource("AnimationNodeAnimation_ldwnh")
|
|
states/Walk/position = Vector2(453, 50)
|
|
transitions = ["Start", "Idle", SubResource("AnimationNodeStateMachineTransition_b8ce1"), "Walk", "Idle", SubResource("AnimationNodeStateMachineTransition_qawrn"), "Idle", "Walk", SubResource("AnimationNodeStateMachineTransition_xxacn")]
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_6xove"]
|
|
radius = 2.42109
|
|
|
|
[node name="vole" instance=ExtResource("1_fw737")]
|
|
script = ExtResource("2_6xove")
|
|
|
|
[node name="AnimationTree" type="AnimationTree" parent="." index="2"]
|
|
unique_name_in_owner = true
|
|
root_node = NodePath("%AnimationTree/..")
|
|
root_motion_track = NodePath("VoleRig/Skeleton3D:root")
|
|
root_motion_local = false
|
|
tree_root = SubResource("AnimationNodeStateMachine_fw737")
|
|
anim_player = NodePath("../AnimationPlayer")
|
|
|
|
[node name="Area3D" type="Area3D" parent="." index="3"]
|
|
script = ExtResource("3_ldwnh")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D" index="0"]
|
|
shape = SubResource("SphereShape3D_6xove")
|
|
|
|
[node name="Breed" type="Timer" parent="." index="4"]
|
|
wait_time = 5.0
|
|
autostart = true
|
|
|
|
[connection signal="area_entered" from="Area3D" to="Area3D" method="_on_area_entered"]
|
|
[connection signal="area_exited" from="Area3D" to="Area3D" method="_on_area_exited"]
|
|
[connection signal="off" from="Area3D" to="." method="_on_area_3d_off"]
|
|
[connection signal="on" from="Area3D" to="." method="_on_area_3d_on"]
|
|
[connection signal="timeout" from="Breed" to="." method="_on_breed_timeout"]
|