[gd_scene load_steps=14 format=3 uid="uid://bacgd5lmvaxea"] [ext_resource type="Script" uid="uid://bcgt64gerg8pv" path="res://Scripts/player.gd" id="1_5wxv7"] [ext_resource type="Material" uid="uid://b4rpp31c0dx2m" path="res://Assets/Materials/BasicMat.tres" id="1_y6xdh"] [ext_resource type="Script" uid="uid://bk6205bvyl0to" path="res://Scripts/player_state_machine.gd" id="2_y5hcb"] [ext_resource type="Script" uid="uid://c2xwiexy5b3b3" path="res://Scripts/player_attack.gd" id="3_knrd4"] [ext_resource type="Script" uid="uid://wnisqyoyai2h" path="res://Scripts/player_on_floor.gd" id="4_hck1p"] [ext_resource type="Script" uid="uid://dhnl0penaqfkx" path="res://Scripts/player_dodge_roll.gd" id="5_hck1p"] [ext_resource type="PackedScene" uid="uid://b12w4ut17srje" path="res://Assets/Models/Character1.blend" id="7_juxdh"] [sub_resource type="BoxMesh" id="BoxMesh_5wxv7"] size = Vector3(0.945, 0.13, 0.135) [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_y5hcb"] radius = 0.362 [sub_resource type="Animation" id="Animation_juxdh"] length = 0.001 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Body:rotation") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [Vector3(0, 0, 0)] } [sub_resource type="Animation" id="Animation_hck1p"] resource_name = "dodge" step = 0.001 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Body:rotation") tracks/0/interp = 2 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.3), "transitions": PackedFloat32Array(1, 1), "update": 0, "values": [Vector3(0, 0, 0), Vector3(0, 0, 6.28319)] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_4qbli"] _data = { &"RESET": SubResource("Animation_juxdh"), &"dodge": SubResource("Animation_hck1p") } [sub_resource type="SphereShape3D" id="SphereShape3D_juxdh"] radius = 2.5 [node name="Player" type="CharacterBody3D"] script = ExtResource("1_5wxv7") [node name="OmniLight3D" type="OmniLight3D" parent="."] transform = Transform3D(1, -1.74846e-07, 0, 1.74846e-07, 1, 0, 0, 0, 1, -2.406e-07, 1.87607, 0.0537765) light_energy = 0.1 [node name="State Machine" type="Node" parent="." node_paths=PackedStringArray("character", "initial_state")] script = ExtResource("2_y5hcb") character = NodePath("..") initial_state = NodePath("On Floor") [node name="Attack" type="Node" parent="State Machine"] script = ExtResource("3_knrd4") [node name="On Floor" type="Node" parent="State Machine"] script = ExtResource("4_hck1p") move_speed = 7.0 [node name="Dodge Roll" type="Node" parent="State Machine"] script = ExtResource("5_hck1p") [node name="Body" type="MeshInstance3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0.0537765) material_override = ExtResource("1_y6xdh") skeleton = NodePath("") metadata/extras = { "poliigon_props": {}, "rr_curve_obj": {} } [node name="Character1" parent="Body" instance=ExtResource("7_juxdh")] transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, -0.5, 0.0393383) [node name="MeshInstance3D" type="MeshInstance3D" parent="Body"] transform = Transform3D(-0.487982, 0, -0.872854, 0, 1, 0, 0.872854, 0, -0.487982, 0.652269, 0.475497, -0.696594) mesh = SubResource("BoxMesh_5wxv7") skeleton = NodePath("../..") [node name="CollisionShape3D" type="CollisionShape3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0) shape = SubResource("CapsuleShape3D_y5hcb") [node name="AnimationPlayer" type="AnimationPlayer" parent="."] libraries = { &"": SubResource("AnimationLibrary_4qbli") } [node name="Area3D" type="Area3D" parent="."] collision_layer = 32 collision_mask = 32 [node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"] shape = SubResource("SphereShape3D_juxdh") [connection signal="body_entered" from="Area3D" to="." method="_on_area_3d_body_entered"]