How do I resize a window (viewport) using tween?

Godot Version



I want to make it look like the window resizes in windowkill.
So i code like this
tween.tween_property(viewport, “size”, ~~~~)
But it doesn’t work…

Windowkill uses a fork of Godot that may modify how the behavior of that works, it’s here GitHub - torcado194/godot-windowkill

Most of them are coded in c++, is windowkill coded in c++?

I don’t know, I’m just saying that if it’s not working as it does in windowkill is because they are using a custom fork of the engine and may have coded that in it.

I just tested this code:

extends Node

func _ready() -> void:
	var tween = create_tween()
	var window = get_window()
	tween.tween_property(window, "size", Vector2i(1000, 1000), 3)

And it works but the resizing is not fluid. Windowkill Godot fork probably has modifications to do that smoothly.

1 Like