As I can see, many people have asked this question here, but the answers aren't work in my code, because it doesn't know "texture" property.
I would like set the position of the enemy objects based on their sprites. E.g. let an enemy be created at -128 and (getviewportrect().size).y-256 if it has 128*256 pixels dimensions. So, let it be outside the screen, at its left corner.
I tried texture.get_size() and similar commands, but it never liked "texture" property.
Here is my piece of code:
var itssprite: Sprite=get_node("res://monster.png")