9 lines
175 B
GDScript
9 lines
175 B
GDScript
extends State
|
|
|
|
func enter(char: Object) -> void:
|
|
char.play_animation("idle")
|
|
char.velocity.x = 0.0
|
|
|
|
func process(char: Object, delta: float) -> void:
|
|
char.move_and_slide()
|