summaryrefslogtreecommitdiff
path: root/game/microgames/flowers_delivery/player.gd
blob: 9f22d08d7457ac22885101fd5956ea3851198e41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extends AnimatedSprite3D

func _ready() -> void:
	pass


func _process(delta: float) -> void:
	position.z -= delta * 3
	
	if Input.is_anything_pressed():
		animation = "dodge"
		offset.y = -100.0
	else:
		animation = "default"
		offset.y = 0.0