improvements

This commit is contained in:
JoeMama
2025-10-10 21:29:26 +01:00
parent 01238a0f1c
commit 7feff48380
17 changed files with 753 additions and 387 deletions

View File

@@ -20,8 +20,8 @@ func _ready() -> void:
$Platform/ScoreNoteSpawner.owner = $Platform
func _process(_delta: float) -> void:
if not dropped:
$Rope.size.y = platform.global_position.y - rope_top
if not dropped and is_instance_valid($Rope):
$Rope.size.y = $Platform.global_position.y - rope_top
$Rope.global_position.y = rope_top
func _physics_process(delta: float) -> void:

View File

@@ -781,7 +781,7 @@ func enter_pipe(pipe: PipeArea, warp_to_level := true) -> void:
await get_tree().create_timer(1, false).timeout
if Global.current_game_mode == Global.GameMode.LEVEL_EDITOR or Global.current_game_mode == Global.GameMode.CUSTOM_LEVEL:
LevelEditor.play_pipe_transition = true
owner.transition_to_sublevel(pipe.target_sub_level)
Global.transition_to_scene(NewLevelBuilder.sub_levels[pipe.target_sub_level])
else:
Global.transition_to_scene(pipe.target_level)