0 votes

Extends Node2D

Declare member variables here. Examples:

onready var Tile=preload("res://tile.tscn")

var xPn:float =0.0
var yPn:float=0.0
var myObject = Tile.instance()
func addobj():
myObject.position = Vector2(10,0)

Called when the node enters the scene tree for the first time.

Called every frame. 'delta' is the elapsed time since the previous frame.

func _process(delta):


Godot version 3.3.4
in Engine by (54 points)

1 Answer

+1 vote
Best answer
Extends Node2D

extends should be lowercase, change it to:

extends Node2D
by (3,710 points)
selected by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.