updated 2-4 to not kill the player when below the screen, in anti grav

This commit is contained in:
JHDev2006
2025-09-22 13:29:14 +01:00
parent cdb7348c67
commit 11fbbaaa7d
3 changed files with 34 additions and 32 deletions

View File

@@ -117,7 +117,7 @@ var can_time_tick := true:
if value == false:
pass
var player_power_states := "1000"
var player_power_states := "0000"
var connected_players := 1

View File

@@ -27,7 +27,7 @@ func physics_update(delta: float) -> void:
handle_death_pits()
func handle_death_pits() -> void:
if player.global_position.y > 64 and not Level.in_vine_level and player.auto_death_pit:
if player.global_position.y > 64 and not Level.in_vine_level and player.auto_death_pit and player.gravity_vector == Vector2.DOWN:
player.die(true)
elif player.global_position.y < Global.current_level.vertical_height - 32 and player.gravity_vector == Vector2.UP:
player.die(true)