Skip to content

Instantly share code, notes, and snippets.

@DomDumont
Created October 16, 2023 18:18
Show Gist options
  • Save DomDumont/a10f740cc48d173d5df47799d3cf1e19 to your computer and use it in GitHub Desktop.
Save DomDumont/a10f740cc48d173d5df47799d3cf1e19 to your computer and use it in GitHub Desktop.
dialog with animation in godot
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