tenchu/Godot/Code/Character.gd
2023-09-28 13:10:10 +07:00

19 lines
384 B
GDScript

extends CharacterBody2D
var gravity = 15
func _physics_process(delta):
if !is_on_floor():
velocity.y += 15
move_and_slide()
$AnimationPlayer.play('Idle')
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass