finished player ai

This commit is contained in:
Jonas Mucke
2020-04-20 20:52:07 +02:00
parent e2f50060db
commit e380a18ee3
5 changed files with 203 additions and 261 deletions

View File

@@ -150,24 +150,13 @@ func movement_hit():
func hit_finished():
grid._update_grid()
movementState = moveState.IDLE
ai_movement_state = STEP
ExecutionState = EXECUTING
ExecutionState = AI_MOVE
actionFieldUsed = false
func movement_roll():
velocity = rollvector * ROLL_SPEED
animation_state.change_state("roll")
"""
# Roll.gd
func enter():
owner.animation_state.travel("roll")
func update():
owner.velocity = rollvector * ROLL_SPEED
"""
ExecutionState = EXECUTING
func roll_finished():

View File

@@ -736,7 +736,7 @@ __meta__ = {
}
[node name="Stats" parent="." instance=ExtResource( 5 )]
max_health = 5
max_health = 20
[node name="AnimationStates" type="Node" parent="."]
script = ExtResource( 15 )