mirror of
				https://github.com/mightypanders/GMTKJam2021.git
				synced 2025-11-04 02:59:50 +01:00 
			
		
		
		
	remove empty guests
This commit is contained in:
		
							
								
								
									
										3
									
								
								Playa.gd
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								Playa.gd
									
									
									
									
									
								
							@@ -125,6 +125,9 @@ func _on_PickupCheckArea_area_entered(area):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func _physics_process(delta):
 | 
					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 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")
 | 
						var forward_backward = Input.get_action_strength("ui_up") - Input.get_action_strength("ui_down")
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user