added controller support and attack
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=14 format=3 uid="uid://bacgd5lmvaxea"]
|
||||
[gd_scene load_steps=15 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"]
|
||||
@@ -28,6 +28,13 @@ tracks/0/keys = {
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 0, 0)]
|
||||
}
|
||||
tracks/1/type = "position_3d"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("Body/ShittySword")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = PackedFloat32Array(0, 1, 0.652269, 0.475497, -0.696594)
|
||||
|
||||
[sub_resource type="Animation" id="Animation_hck1p"]
|
||||
resource_name = "dodge"
|
||||
@@ -45,9 +52,28 @@ tracks/0/keys = {
|
||||
"values": [Vector3(0, 0, 0), Vector3(0, 0, 6.28319)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_4qbli"]
|
||||
resource_name = "attack"
|
||||
length = 0.5
|
||||
tracks/0/type = "position_3d"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Body/ShittySword")
|
||||
tracks/0/interp = 2
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = PackedFloat32Array(0, 1, 0.652269, 0.475497, -0.696594, 0.166667, 1, 0.870782, 0.475497, -0.508641, 0.193146, 1, 0.870782, 0.475497, -0.508641, 0.3, 1, -0.309897, 0.475497, -0.720175, 0.433352, 1, 0.652269, 0.475497, -0.696594)
|
||||
tracks/1/type = "rotation_3d"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("Body/ShittySword")
|
||||
tracks/1/interp = 2
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = PackedFloat32Array(0, 1, 0, -0.86255, 0, 0.505973, 0.166667, 1, 0, 0.949105, 0, -0.314961, 0.193146, 1, 0, 0.949105, 0, -0.314961, 0.3, 1, 0, -0.371061, 0, 0.928609, 0.433352, 1, 0, -0.86255, 0, 0.505973)
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_4qbli"]
|
||||
_data = {
|
||||
&"RESET": SubResource("Animation_juxdh"),
|
||||
&"attack": SubResource("Animation_4qbli"),
|
||||
&"dodge": SubResource("Animation_hck1p")
|
||||
}
|
||||
|
||||
@@ -88,8 +114,8 @@ metadata/extras = {
|
||||
[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)
|
||||
[node name="ShittySword" type="MeshInstance3D" parent="Body"]
|
||||
transform = Transform3D(-0.487984, 0, -0.872853, 0, 1, 0, 0.872853, 0, -0.487984, 0.652269, 0.475497, -0.696594)
|
||||
mesh = SubResource("BoxMesh_5wxv7")
|
||||
skeleton = NodePath("../..")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user