12 lines
258 B
GDScript
12 lines
258 B
GDScript
extends PlayerState
|
|
class_name PlayerGroundPound
|
|
|
|
@export var ground_pound_velocity = -35
|
|
|
|
func Enter():
|
|
character.velocity = Vector3(0,ground_pound_velocity,0)
|
|
|
|
func Physics_Update(delta):
|
|
if character.is_on_floor():
|
|
Transitioned.emit(self, "crouched")
|