mirror of
				https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
				synced 2025-10-26 09:20:49 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			242 B
		
	
	
	
		
			GDScript
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			242 B
		
	
	
	
		
			GDScript
		
	
	
		
			Executable File
		
	
	
	
	
| extends Enemy
 | |
| 
 | |
| func _physics_process(delta: float) -> void:
 | |
| 	handle_movement(delta)
 | |
| 
 | |
| func handle_movement(delta: float) -> void:
 | |
| 	apply_enemy_gravity(delta)
 | |
| 	if is_on_floor():
 | |
| 		velocity.x = lerpf(velocity.x, 0, delta * 10)
 | |
| 	move_and_slide()
 | 
