added ground pound
This commit is contained in:
11
scripts/player_ground_pound.gd
Normal file
11
scripts/player_ground_pound.gd
Normal file
@@ -0,0 +1,11 @@
|
||||
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")
|
||||
Reference in New Issue
Block a user