fadein.gd 331 B

12345678910111213141516171819
  1. extends Node
  2. export(NodePath) var nodepath
  3. onready var node = get_node(nodepath)
  4. var buffer : float
  5. var buff = 0
  6. func _ready():
  7. node.scale.x = 0
  8. node.scale.y = 0
  9. node.modulate.a = 0
  10. func _physics_process(delta):
  11. node.scale.x += delta
  12. node.scale.y += delta
  13. node.modulate.a += delta
  14. buff += 1
  15. if buff == 60: queue_free()