Platformer 2.0
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user