Created
October 16, 2023 18:18
-
-
Save DomDumont/a10f740cc48d173d5df47799d3cf1e19 to your computer and use it in GitHub Desktop.
dialog with animation in godot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func Open(): | |
window.show() | |
var tween = create_tween() | |
tween.tween_property(window, "position:y", 300, 2).set_trans(Tween.TRANS_ELASTIC).set_ease(Tween.EASE_OUT) | |
tween.tween_property(window,"modulate:a",1,2) | |
tween.play() | |
func _on_window_close_requested(): | |
window.hide() | |
window.position.y= -700 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment