made sub level transitions a bit smoother

This commit is contained in:
JHDev2006
2025-09-20 19:09:34 +01:00
parent 99066de39b
commit 4cc6e938fc
11 changed files with 2839 additions and 2708 deletions

View File

@@ -657,6 +657,7 @@ func transition_to_sublevel(sub_lvl_idx := 0) -> void:
LevelPersistance.reset_states()
sub_level_id = sub_lvl_idx
$LevelLoader.load_level(sub_lvl_idx)
Global.do_fake_transition(0.1)
await get_tree().physics_frame
if (play_pipe_transition or play_door_transition) and play_transition:
parse_tiles()