21 lines
453 B
GDScript
21 lines
453 B
GDScript
extends TextureRect
|
|
|
|
var viewportWidth
|
|
var viewportHeight
|
|
var start_size
|
|
var changed_size
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready():
|
|
viewportWidth = get_viewport().size.x
|
|
viewportHeight = get_viewport().size.y
|
|
start_size = Vector2(size.x, size.y)
|
|
changed_size = start_size
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
func _process(delta):
|
|
pass
|
|
|
|
func anim_end():
|
|
queue_free()
|