mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-17 21:53:48 +00:00
Dialogue System
This commit is contained in:
parent
77765a581e
commit
1fa77f0c03
690 changed files with 46698 additions and 14 deletions
|
|
@ -0,0 +1,23 @@
|
|||
extends DialogicAnimation
|
||||
|
||||
func animate() -> void:
|
||||
var tween := (node.create_tween() as Tween)
|
||||
tween.set_ease(Tween.EASE_IN_OUT).set_trans(Tween.TRANS_SINE)
|
||||
|
||||
var strength: float = node.get_viewport().size.y/40
|
||||
tween.tween_property(node, 'position:y', base_position.y + strength, time * 0.2)
|
||||
tween.tween_property(node, 'position:y', base_position.y - strength, time * 0.1)
|
||||
tween.tween_property(node, 'position:y', base_position.y + strength, time * 0.1)
|
||||
tween.tween_property(node, 'position:y', base_position.y - strength, time * 0.1)
|
||||
tween.tween_property(node, 'position:y', base_position.y + strength, time * 0.1)
|
||||
tween.tween_property(node, 'position:y', base_position.y - strength, time * 0.1)
|
||||
tween.tween_property(node, 'position:y', base_position.y + strength, time * 0.1)
|
||||
tween.tween_property(node, 'position:y', base_position.y, time * 0.2)
|
||||
|
||||
tween.finished.connect(emit_signal.bind('finished_once'))
|
||||
|
||||
|
||||
func _get_named_variations() -> Dictionary:
|
||||
return {
|
||||
"shake y": {"type": AnimationType.ACTION},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue