Guy float
This commit is contained in:
		
							parent
							
								
									b33b754954
								
							
						
					
					
						commit
						9d9c7cd868
					
				
					 2 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
					@ -46,8 +46,6 @@ func process_velocity(delta: float):
 | 
				
			||||||
	# Uses the input from MovementInput to compute and update this node's velocity
 | 
						# Uses the input from MovementInput to compute and update this node's velocity
 | 
				
			||||||
	# velocity_acceleration controls gradual speedup whereas velocity_friction
 | 
						# velocity_acceleration controls gradual speedup whereas velocity_friction
 | 
				
			||||||
	# controls gradual slowdown
 | 
						# controls gradual slowdown
 | 
				
			||||||
	if Dialogic.get_variable("enable_glide") == "true":
 | 
					 | 
				
			||||||
		can_glide = true
 | 
					 | 
				
			||||||
	# Gravity
 | 
						# Gravity
 | 
				
			||||||
	# You can buffer jumps by pressing releaseing the space bar and then pressing it again
 | 
						# You can buffer jumps by pressing releaseing the space bar and then pressing it again
 | 
				
			||||||
	if not is_on_floor():
 | 
						if not is_on_floor():
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -35,7 +35,10 @@ func objective_distance() -> float:
 | 
				
			||||||
	return $ObjectiveTracker.objective_distance
 | 
						return $ObjectiveTracker.objective_distance
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func _process(_delta):
 | 
					func _process(_delta):
 | 
				
			||||||
 | 
						if Dialogic.get_variable("enable_glide") == "true":
 | 
				
			||||||
 | 
							can_float = true
 | 
				
			||||||
	$OnFootPhysics.can_glide = can_glide
 | 
						$OnFootPhysics.can_glide = can_glide
 | 
				
			||||||
	$OnFootPhysics.can_float = can_float
 | 
						$OnFootPhysics.can_float = can_float
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue