mirror of
				https://github.com/mightypanders/GMTKJam2021.git
				synced 2025-11-04 02:59:50 +01:00 
			
		
		
		
	pickup logic
This commit is contained in:
		
							
								
								
									
										6
									
								
								Guest.gd
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								Guest.gd
									
									
									
									
									
								
							@@ -33,8 +33,10 @@ func _ready():
 | 
				
			|||||||
	pass # Replace with function body.
 | 
						pass # Replace with function body.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func _on_PickUpArea_body_entered(body):
 | 
					func _on_PickUpArea_body_entered(body):
 | 
				
			||||||
	if body.name =="PLAYER":
 | 
						print(body.name)
 | 
				
			||||||
		if body.velocity.x >= PICKUPTRESHOLD or body.velocity.y >= PICKUPTRESHOLD:
 | 
						if body.name == "Playa":
 | 
				
			||||||
 | 
							print(body.velocity)
 | 
				
			||||||
 | 
							if body.velocity.x >= PICKUPTRESHOLD and body.velocity.y >= PICKUPTRESHOLD:
 | 
				
			||||||
			emit_signal("picked_up",destinationColor,guestName)
 | 
								emit_signal("picked_up",destinationColor,guestName)
 | 
				
			||||||
			# start pickup process
 | 
								# start pickup process
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user