adjusted player hitbox
This commit is contained in:
parent
6b1f260c86
commit
55d26ac6ca
9 changed files with 161 additions and 22 deletions
13
objects/turniwood/turniwood.gd
Normal file
13
objects/turniwood/turniwood.gd
Normal file
|
@ -0,0 +1,13 @@
|
|||
extends Node2D
|
||||
onready var anims = $AnimationPlayer
|
||||
|
||||
func _ready():
|
||||
#Autostart animationplayer
|
||||
anims.play("idle")
|
||||
|
||||
func _on_AnimationPlayer_animation_finished(anim_name):
|
||||
#When idling is done, turn
|
||||
if anim_name == "idle":
|
||||
anims.play("turn")
|
||||
if anim_name == "turn":
|
||||
anims.play("idle")
|
Loading…
Add table
Add a link
Reference in a new issue