Hi, first of all I'm sorry I'm asking so many questions, I will re-pay when I'll be more expert and able to aswer some questions myself (or supporting the engine on patreon). I want to make my player to shoot fireballs.
My fireball script:
const SPEED = 2
var velocity = Vector2()
velocity.x = SPEED + delta
And I've added that to my player script:
const fireballl = preload("res://Fireballl.tscn")
var fireball = fireballl.instance() #ERROR HERE
fireball.position = $Position2D.global_position
Then I've added a "position 2d" to the player, so I could set the start position of the fireball from the player
The error is: " Invalid call. Nonexistent function 'istance' in base 'PackedScene' "