You can get the size of the texture, the sprite have "scale" but not "size"... size texture is:
·get_node("Sprite").get_texture().get_size()
Texture size is Vector2, so, if you whant to check texture size X:
·get_node("Sprite").get_texture().get_size().x -----> "this return INT"
if you whant to check texture size Y:
·get_node("Sprite").get_texture().get_size().y -----> "this return INT"
I don´t have GODOT now, but I think this is the proper way. But I don´t recomend use get_node under process or fixed process, if your texture doesn´t change in runtime, make a const/var with this in declaration part of the script:
·onready var SizeOfMySprite = get_node("Sprite").get_texture().get_size() ----> "return Vector2, if whant INT add a dot and "x" or "y" "
or
·onready const SizeOfMySprite = get_node("Sprite").get_texture().get_size()
I don´t know if the last works and now i can´t check, probably const can´t be defined in _ready.