Guest User

ghost

a guest
Aug 24th, 2023
1,636
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. extends Sprite2D
  2.  
  3. func _ready():
  4. ghosting()
  5.  
  6. func set_property(tx_pos, tx_scale ):
  7. position = tx_pos
  8. scale = tx_scale
  9.  
  10. func ghosting():
  11. var tween_fade = get_tree().create_tween()
  12.  
  13. tween_fade.tween_property(self, "self_modulate",Color(1, 1, 1, 0), 0.75 )
  14. await tween_fade.finished
  15.  
  16. queue_free()
  17.  
Add Comment
Please, Sign In to add comment