mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-21 14:13:48 +00:00
Updated dialogic
This commit is contained in:
parent
1d11462073
commit
cbb82512ee
483 changed files with 5743 additions and 2177 deletions
|
|
@ -4,16 +4,17 @@ func animate() -> void:
|
|||
var tween := (node.create_tween() as Tween)
|
||||
tween.set_ease(Tween.EASE_OUT).set_trans(Tween.TRANS_BACK)
|
||||
|
||||
var target_position := base_position.y
|
||||
var start_position: float = -node.get_viewport().size.y
|
||||
var end_position_y: float = base_position.y + node.get_parent().global_position.y
|
||||
var start_position: float = -get_node_size().y + get_node_origin().y
|
||||
|
||||
if is_reversed:
|
||||
target_position = -node.get_viewport().size.y
|
||||
tween.set_ease(Tween.EASE_IN)
|
||||
end_position_y = -get_node_size().y + get_node_origin().y
|
||||
start_position = base_position.y
|
||||
|
||||
node.position.y = start_position
|
||||
|
||||
tween.tween_property(node, 'position:y', target_position, time)
|
||||
tween.tween_property(node, 'global_position:y', end_position_y, time)
|
||||
|
||||
await tween.finished
|
||||
finished_once.emit()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue