forked from interstellar_development/freeftf
M6 B1
Lots of bug fixes that were reported by game testers and me.
This commit is contained in:
parent
40100e8fee
commit
eba1c28eb9
9 changed files with 163 additions and 68 deletions
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue