mirror of
https://github.com/creyD/ludum_dare_46.git
synced 2026-06-14 06:22:22 +02:00
Added stomp effect
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
extends "res://Boss/SlimeBoss/States/BossState.gd"
|
||||
|
||||
onready var stomp_hitbox = owner.get_node("StompHitbox/CollisionShape2D")
|
||||
onready var stomp_effect = owner.get_node("Effects/StompEffect")
|
||||
|
||||
func enter():
|
||||
stomp_hitbox.disabled = false
|
||||
stomp_effect.stomp()
|
||||
|
||||
func exit():
|
||||
stomp_hitbox.disabled = true
|
||||
@@ -11,8 +13,5 @@ func exit():
|
||||
func update(delta):
|
||||
play_directional_animation("Charge", owner.last_look)
|
||||
|
||||
func _on_animation_finished(anim_name):
|
||||
anim_name = get_base_anim_name(anim_name)
|
||||
assert(anim_name == "Charge")
|
||||
|
||||
func _on_StompEffect_animation_finished():
|
||||
emit_signal("finished")
|
||||
|
||||
Reference in New Issue
Block a user