where is reference of position variable ?and other question.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By bgegg

1,where is position variable(function)?
extends Sprite
func _ready():
position.x += 100
print(position.x)

i can not found in this page.

2,why can not show intelisense to the last?
get_node(“node”).get_name()
i can not show intelisense of get_name() function.

3,i can not drop folder to godot from windows10
i use windows10 and godot3.1
is this specification or bug?

please help me.

:bust_in_silhouette: Reply From: kidscancode
  1. Sprite inherits from Node2D. If you look at Node2D, you’ll see that is where position is defined: Node2D — Godot Engine (latest) documentation in English

  2. get/set methods do not appear in autocomplete. Instead, use the property name: get_node("node").name

  3. You’ll need to use your system file manager to drop the folder into the project folder.

thanks i solved question of 1 and 2
about question 3
what is system file manager?i drop from windows exploer
i can drop file but i can not drop folder

bgegg | 2019-04-30 08:28

You have to use windows explorer to copy folders, you can’t drop onto the Godot window.

kidscancode | 2019-04-30 14:26

thanks
i understand it

bgegg | 2019-04-30 20:38