I am new to Godot so I am sure I am making a simple, stupid mistake, any help is much appreciated.
I am trying to make a node that regularly spawns platforms off screen that will move until they are queue_freed when they make it to the other side of the screen. I am having difficulty when trying to call the .instance method.
I have tried a few different ways to call the floor node variable into the spawning script to no avail. Please help! :)
I am receiving the following error when trying to instance new platforms:
Invalid call. Nonexistant function 'insance' in base 'RigidBody2D'
Godot version: 3.2.1.stable.official
- FloorSpawn (Node2D)
---- Floor (RigidBody2D)
Script (attached to node root):
onready var new_floor = $Floor
var new_floori = new_floor.instance()
export var speed = -100
move_local_y(delta * speed)