source: Studio/Player.tscn@ cc65f28

sandbox
Last change on this file since cc65f28 was cc65f28, checked in by Kevin Chapman <victory2b@…>, 3 years ago

Made it so player will auto walk up short stairs

  • Property mode set to 100644
File size: 5.9 KB
RevLine 
[3c8ca52]1[gd_scene load_steps=14 format=2]
[f7b09c8]2
3[ext_resource path="res://Player.gd" type="Script" id=1]
[70fb6d4]4[ext_resource path="res://Textures/Crosshair/Crosshair.png" type="Texture" id=2]
5[ext_resource path="res://Textures/Interface/Man.png" type="Texture" id=3]
6[ext_resource path="res://Textures/Interface/FallDamage.png" type="Texture" id=4]
7[ext_resource path="res://Camera.gd" type="Script" id=5]
[3c8ca52]8[ext_resource path="res://Stats/staminabar.tres" type="Theme" id=6]
9[ext_resource path="res://Stats/lifeforcebar.tres" type="Theme" id=7]
10[ext_resource path="res://Stats/manabar.tres" type="Theme" id=8]
11[ext_resource path="res://Stats/xpbar.tres" type="Theme" id=9]
12[ext_resource path="res://Stats/healthbar.tres" type="Theme" id=10]
[f7b09c8]13
14[sub_resource type="CapsuleMesh" id=1]
[70fb6d4]15radius = 0.5
[f7b09c8]16
17[sub_resource type="CapsuleShape" id=2]
[70fb6d4]18radius = 0.5
[cc65f28]19height = 0.64793
[70fb6d4]20
[cc65f28]21[sub_resource type="Animation" id=3]
[70fb6d4]22length = 0.6
23tracks/0/type = "value"
24tracks/0/path = NodePath("../HUD/Control/FallDamage:modulate")
25tracks/0/interp = 1
26tracks/0/loop_wrap = true
27tracks/0/imported = false
28tracks/0/enabled = true
29tracks/0/keys = {
30"times": PoolRealArray( 0, 0.2, 0.6 ),
31"transitions": PoolRealArray( 1, 1, 1 ),
32"update": 0,
33"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ) ]
34}
[f7b09c8]35
36[node name="Player" type="KinematicBody"]
37transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 8.25497, 0 )
38script = ExtResource( 1 )
39
40[node name="BodyMesh" type="MeshInstance" parent="."]
[c8c895d]41transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0 )
[f7b09c8]42mesh = SubResource( 1 )
43material/0 = null
44
45[node name="BodyCollison" type="CollisionShape" parent="."]
[cc65f28]46transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0.282937, 0 )
[f7b09c8]47shape = SubResource( 2 )
48
[cc65f28]49[node name="Leg" type="CollisionShape" parent="."]
50transform = Transform( -1.22191e-07, -0.75, 4.37114e-08, 0, -3.27835e-08, -1, 0.75, -1.22191e-07, 7.12149e-15, 0, -0.280967, 0 )
51shape = SubResource( 2 )
[5a9a237]52
[cc65f28]53[node name="Foot" type="Spatial" parent="Leg"]
54transform = Transform( -8.14603e-08, 0, 0.5, 8.37124e-16, 0.5, 0, -0.5, 3.55271e-15, -8.14603e-08, 3.19949e-08, 0, 0.147287 )
[5a9a237]55
[cc65f28]56[node name="FootRay" type="RayCast" parent="Leg/Foot"]
57transform = Transform( 1, 1.67424e-15, 2.84217e-14, 1.67425e-15, 1, 0, 0, 0, 1, -0.637594, 3.71605e-08, -1.03876e-07 )
[5a9a237]58enabled = true
[cc65f28]59cast_to = Vector3( 0, 1.32, 0 )
[5a9a237]60
[f7b09c8]61[node name="Head" type="Spatial" parent="."]
[70fb6d4]62transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.64, 0 )
[f7b09c8]63
64[node name="Camera" type="Camera" parent="Head"]
[70fb6d4]65script = ExtResource( 5 )
[f7b09c8]66
[70fb6d4]67[node name="AnimationPlayer" type="AnimationPlayer" parent="Head"]
[cc65f28]68anims/FallDamage = SubResource( 3 )
[f7b09c8]69
70[node name="HUD" type="Control" parent="."]
71anchor_right = 1.0
72anchor_bottom = 1.0
[3c8ca52]73margin_left = 0.0867312
74margin_top = -1.22662
75margin_right = 4.08679
76margin_bottom = -1.22662
[f7b09c8]77__meta__ = {
78"_edit_use_anchors_": false
79}
80
81[node name="Crosshair" type="Control" parent="HUD"]
82anchor_left = 0.5
83anchor_top = 0.5
84anchor_right = 0.5
85anchor_bottom = 0.5
86margin_left = -21.0
87margin_top = -21.0
88margin_right = 21.0
89margin_bottom = 21.0
90__meta__ = {
91"_edit_use_anchors_": false
92}
93
94[node name="Crosshair_Image" type="TextureRect" parent="HUD/Crosshair"]
95anchor_right = 0.5
96anchor_bottom = 0.5
[aa1db83]97margin_left = -1.12244
98margin_top = -1.12244
99margin_right = 38.8776
100margin_bottom = 38.8776
[f7b09c8]101texture = ExtResource( 2 )
[70fb6d4]102__meta__ = {
103"_edit_use_anchors_": false
104}
[f7b09c8]105
106[node name="Control" type="Control" parent="HUD"]
107anchor_top = 1.0
108anchor_right = 0.5
109anchor_bottom = 1.0
[70fb6d4]110margin_left = -0.445442
[f7b09c8]111margin_top = 542.0
[70fb6d4]112margin_right = -514.445
113margin_bottom = 542.0
114__meta__ = {
115"_edit_use_anchors_": false
116}
[f7b09c8]117
[70fb6d4]118[node name="Man" type="TextureRect" parent="HUD/Control"]
119light_mask = 2
[f7b09c8]120anchor_right = 0.5
121anchor_bottom = 0.5
[3c8ca52]122margin_left = 7.61129
123margin_top = -771.506
124margin_right = 109.611
125margin_bottom = -584.506
[f7b09c8]126texture = ExtResource( 3 )
127__meta__ = {
128"_edit_use_anchors_": false
129}
[70fb6d4]130
131[node name="FallDamage" type="TextureRect" parent="HUD/Control"]
132modulate = Color( 1, 1, 1, 0 )
133anchor_right = 0.5
134anchor_bottom = 0.5
[3c8ca52]135margin_left = 24.8588
136margin_top = -609.435
137margin_right = 92.8588
138margin_bottom = -583.435
[70fb6d4]139texture = ExtResource( 4 )
140__meta__ = {
141"_edit_use_anchors_": false
142}
143
144[node name="HealthBar" type="ProgressBar" parent="HUD/Control"]
[aa1db83]145anchor_left = 2.0
146anchor_right = 2.0
147anchor_bottom = 1.0
148margin_left = 744.7
[3c8ca52]149margin_top = -614.977
[aa1db83]150margin_right = 1007.7
[3c8ca52]151margin_bottom = -585.977
152theme = ExtResource( 10 )
[70fb6d4]153max_value = 101.6
154value = 100.0
155rounded = true
156percent_visible = false
157__meta__ = {
158"_edit_use_anchors_": false
159}
160
161[node name="StaminaBar" type="ProgressBar" parent="HUD/Control"]
[aa1db83]162anchor_left = 2.0
163anchor_right = 2.0
164anchor_bottom = 1.0
165margin_left = 744.653
[3c8ca52]166margin_top = -649.119
[aa1db83]167margin_right = 1007.65
[3c8ca52]168margin_bottom = -620.119
[aa1db83]169size_flags_horizontal = 0
[3c8ca52]170theme = ExtResource( 6 )
[70fb6d4]171max_value = 101.6
172value = 100.0
173rounded = true
174percent_visible = false
175__meta__ = {
176"_edit_use_anchors_": false
177}
[aa1db83]178
179[node name="ManaBar" type="ProgressBar" parent="HUD/Control"]
180anchor_left = 2.0
181anchor_right = 2.0
182anchor_bottom = 1.0
183margin_left = 744.653
[3c8ca52]184margin_top = -682.6
[aa1db83]185margin_right = 1007.65
[3c8ca52]186margin_bottom = -653.6
[aa1db83]187size_flags_horizontal = 0
188theme = ExtResource( 8 )
189max_value = 101.6
190value = 100.0
191rounded = true
192percent_visible = false
193__meta__ = {
194"_edit_use_anchors_": false
195}
[3c8ca52]196
197[node name="LifeforceBar" type="ProgressBar" parent="HUD/Control"]
198anchor_left = 2.0
199anchor_right = 2.0
200anchor_bottom = 1.0
201margin_left = 744.934
202margin_top = -580.881
203margin_right = 1007.93
204margin_bottom = -551.881
205size_flags_horizontal = 0
206theme = ExtResource( 7 )
207max_value = 101.6
208value = 100.0
209rounded = true
210percent_visible = false
211__meta__ = {
212"_edit_use_anchors_": false
213}
214
215[node name="XPBar" type="ProgressBar" parent="HUD/Control"]
216anchor_bottom = 0.5
217margin_left = 7.99913
218margin_top = -580.782
219margin_right = 109.999
220margin_bottom = -551.782
221size_flags_horizontal = 0
222theme = ExtResource( 9 )
223max_value = 105.0
224rounded = true
225percent_visible = false
226__meta__ = {
227"_edit_use_anchors_": false
228}
Note: See TracBrowser for help on using the repository browser.