mirror of
https://github.com/mightypanders/GMTKJam2021.git
synced 2025-01-30 21:59:55 +01:00
remove empty guests
This commit is contained in:
parent
79dbae2221
commit
6b115b5325
3
Playa.gd
3
Playa.gd
@ -125,6 +125,9 @@ func _on_PickupCheckArea_area_entered(area):
|
||||
|
||||
|
||||
func _physics_process(delta):
|
||||
for g in guests:
|
||||
if g == null:
|
||||
guests.remove(g)
|
||||
var direction = Vector2.UP.rotated(rotation).normalized() #Playerrotation nehmen ist sicherer
|
||||
var forward_backward = Input.get_action_strength("ui_up") - Input.get_action_strength("ui_down")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user