git fix: this time i changed the positioning of the respawn points in one of our vertical levels, echo mountain

This commit is contained in:
penelope 2023-05-29 03:03:20 -04:00
parent 016a304303
commit 19638bb520
3 changed files with 23 additions and 53 deletions

View file

@ -762,7 +762,7 @@ collision_layer = 128
collision_mask = 7
moving_platform_apply_velocity_on_leave = 1
script = ExtResource( 1 )
walk_acceleration_frames = 8.0
walk_acceleration_frames = 4.0
gravity = 700.0
jump_force = 140.0
double_jump_force = 124.0
@ -1165,8 +1165,8 @@ script = ExtResource( 8 )
[connection signal="state_physics_processing" from="StateChart/Root/Movement" to="." method="_process_movement"]
[connection signal="state_entered" from="StateChart/Root/Movement/Grounded" to="." method="_on_Grounded_state_entered"]
[connection signal="state_physics_processing" from="StateChart/Root/Movement/Grounded" to="." method="_process_grounded"]
[connection signal="state_physics_processing" from="StateChart/Root/Movement/Grounded/CanWalk" to="." method="_process_can_walk"]
[connection signal="state_physics_processing" from="StateChart/Root/Movement/Grounded/CanWalk" to="." method="_process_horizontal_movement_grounded"]
[connection signal="state_physics_processing" from="StateChart/Root/Movement/Grounded/CanWalk" to="." method="_process_can_walk"]
[connection signal="state_entered" from="StateChart/Root/Movement/Grounded/CanWalk/Still" to="." method="_on_Still_state_entered"]
[connection signal="state_entered" from="StateChart/Root/Movement/Grounded/CanWalk/Walking" to="." method="_on_Walking_state_entered"]
[connection signal="state_entered" from="StateChart/Root/Movement/Grounded/CanWalk/Blinking" to="." method="_on_Blinking_state_entered"]

View file

@ -9,5 +9,5 @@ func _on_RespawnPoint_area_entered(area):
var player = area.get_parent()
Game.respawn_point = Vector2(
player.global_position.x if match_h else global_position.x,
player.global_position.y if match_v else global_position.y - 10
player.global_position.y if match_v else global_position.y
)