Lots of bug fixes that were reported by game testers and me.
This commit is contained in:
patrick_pluto 2024-08-06 11:13:52 +02:00
commit eba1c28eb9
9 changed files with 163 additions and 68 deletions

View file

@ -15,9 +15,10 @@ var living = true
func _process(delta):
if occupied:
trapped_body.position = position
trapped_body.position = global_position
if occupied and trapped_body.hp == 0:
living = false
$dead.show()
func _on_area_3d_body_entered(body):
if body is CharacterBody3D:
@ -29,8 +30,8 @@ func _on_area_3d_body_entered(body):
trapped_body.frozen()
elif !body.beast and occupied and living and body != trapped_body:
trapped_body.unfreeze()
trapped_body._on_time_in_bag_timeout()
occupied = false
trapped_body.position = $spawn.global_position
trapped_body = null
func _on_timer_timeout():