mirror of
https://github.com/creyD/ludum_dare_46.git
synced 2026-06-16 23:20:20 +02:00
Added states to boss state machine
This commit is contained in:
@@ -1,13 +1,7 @@
|
||||
extends "res://Overlap/StateMachine/MotionState.gd"
|
||||
extends "res://Overlap/StateMachine/State.gd"
|
||||
|
||||
func enter():
|
||||
owner.get_node("AnimationPlayer").play("MoveDown") # TODO: Replace animation
|
||||
|
||||
func handle_input(event):
|
||||
return .handle_input(event)
|
||||
|
||||
func update(delta):
|
||||
var input_direction = get_input_direction()
|
||||
if input_direction:
|
||||
# emit_signal("finished", "move")
|
||||
pass
|
||||
owner.get_node("AnimationPlayer").play("MoveDown")
|
||||
|
||||
func hero_close(area):
|
||||
emit_signal("finished", "pursue")
|
||||
|
||||
Reference in New Issue
Block a user