[gd_scene load_steps=12 format=2] [ext_resource path="res://player/CameraController.gd" type="Script" id=1] [ext_resource path="res://player/OnFootPhysics.gd" type="Script" id=2] [ext_resource path="res://player/player.gd" type="Script" id=3] [ext_resource path="res://player/MovementInput.gd" type="Script" id=4] [ext_resource path="res://addons/smoothing/smoothing.gd" type="Script" id=5] [ext_resource path="res://player/PlatformMechanics.gd" type="Script" id=6] [ext_resource path="res://player/ElevatorPhysics.gd" type="Script" id=7] [sub_resource type="AnimationNodeStateMachine" id=2] [sub_resource type="AnimationNodeStateMachinePlayback" id=3] [sub_resource type="CylinderShape" id=4] [sub_resource type="SphereShape" id=5] [node name="Player" type="Spatial"] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.750395, 0 ) script = ExtResource( 3 ) [node name="Smoothing" type="Spatial" parent="."] script = ExtResource( 5 ) target = NodePath("../OnFootPhysics") [node name="CameraController" type="Spatial" parent="Smoothing"] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.391438, 0 ) script = ExtResource( 1 ) [node name="Rotation" type="Spatial" parent="Smoothing/CameraController"] [node name="Camera" type="Camera" parent="Smoothing/CameraController/Rotation"] keep_aspect = 0 current = true [node name="CameraAnimationFSM" type="AnimationTree" parent="Smoothing/CameraController/Rotation/Camera"] tree_root = SubResource( 2 ) anim_player = NodePath("../CameraAnimationPlayer") parameters/playback = SubResource( 3 ) [node name="CameraAnimationPlayer" type="AnimationPlayer" parent="Smoothing/CameraController/Rotation/Camera"] root_node = NodePath("../CameraAnimationFSM") [node name="OnFootPhysics" type="KinematicBody" parent="."] script = ExtResource( 2 ) [node name="CollisionShape" type="CollisionShape" parent="OnFootPhysics"] transform = Transform( 0.4, 0, 0, 0, 0.440932, 0, 0, 0, 0.4, 0, 0, 0 ) shape = SubResource( 4 ) [node name="ElevatorPhysics" type="Spatial" parent="."] script = ExtResource( 7 ) [node name="Area" type="Area" parent="ElevatorPhysics"] [node name="CollisionShape" type="CollisionShape" parent="ElevatorPhysics/Area"] transform = Transform( 0.325, 0, 0, 0, 0.78, 0, 0, 0, 0.325, 0.0029822, 0.0328078, -0.000828505 ) shape = SubResource( 5 ) [node name="MovementInput" type="Node" parent="."] script = ExtResource( 4 ) [node name="VerticalTimer" type="Timer" parent="MovementInput"] [node name="HorizontalTimer" type="Timer" parent="MovementInput"] [node name="PlatformMechanics" type="Node" parent="."] script = ExtResource( 6 ) [connection signal="area_entered" from="ElevatorPhysics/Area" to="ElevatorPhysics" method="_on_Area_area_entered"] [connection signal="area_exited" from="ElevatorPhysics/Area" to="ElevatorPhysics" method="_on_Area_area_exited"] [connection signal="timeout" from="MovementInput/VerticalTimer" to="MovementInput" method="_on_VerticalTimer_timeout"] [connection signal="timeout" from="MovementInput/HorizontalTimer" to="MovementInput" method="_on_HorizontalTimer_timeout"]