mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-12-06 03:30:22 -08:00
co mnment
:earnest:
This commit is contained in:
parent
9fd858811f
commit
073fcb5489
1 changed files with 1 additions and 0 deletions
|
|
@ -114,6 +114,7 @@ func in_game() -> void:
|
|||
|
||||
func run_player_check(player: Player) -> void:
|
||||
# guzlad: Added support for characters with a hitbox height below 1.0 to enter pipes underwater
|
||||
# SkyanUltra: Added distance check to prevent entering pipes from too low.
|
||||
var distance = player.global_position.distance_to(hitbox.global_position)
|
||||
if distance <= 6 and Global.player_action_pressed(get_input_direction(enter_direction), player.player_id) and (player.is_actually_on_floor() or enter_direction == 1):
|
||||
can_enter = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue