]> Untitled Git - wolf-seeking-sheep.git/blob - addons/dialogic/Modules/Character/DefaultAnimations/heartbeat.gd
Squashed commit of the following:
[wolf-seeking-sheep.git] / addons / dialogic / Modules / Character / DefaultAnimations / heartbeat.gd
1 extends DialogicAnimation
2
3 func animate() -> void:
4         var tween := (node.create_tween() as Tween)
5         tween.tween_property(node, 'scale', Vector2(1,1)*1.2, time*0.5).set_trans(Tween.TRANS_ELASTIC).set_ease(Tween.EASE_OUT)
6         tween.tween_property(node, 'scale', Vector2(1,1), time*0.5).set_trans(Tween.TRANS_BOUNCE).set_ease(Tween.EASE_OUT)
7         tween.finished.connect(emit_signal.bind('finished_once'))
8
9
10 func _get_named_variations() -> Dictionary:
11         return {
12                 "heartbeat": {"type": AnimationType.ACTION},
13         }