PointSpawner

Inherits: Marker2D < Node2D < CanvasItem < Node < Object

Spawns Scene as siblings continously in intervals with the option to have multiple spawns in the run.

Properties

Array[PackedScene]

Scenes

bool

autostart

false

float

Rate

0.5

int

Initial_Spawns

10

float

time_counter

bool

spawning

false

Methods

void

_ready()

void

_physics_process(delta: float)

void

begin()

void

end()

void

spawn()


Property Descriptions

Array[PackedScene] Scenes 🔗

The scenes to spawn. A Random scene will be picked from here to be spawned.


bool autostart = false 🔗

When set to true, it will automatically begin spawning as soon as it enters the tree.


float Rate = 0.5 🔗

Scenes spawned per Second.


int Initial_Spawns = 10 🔗

Number of scenes spawned at the very first run.


float time_counter 🔗

The time passed since the last spawn.


bool spawning = false 🔗

A boolean to turn spawning on and off.


Method Descriptions

void _ready() 🔗

There is currently no description for this method. Please help us by contributing one!


void _physics_process(delta: float) 🔗

There is currently no description for this method. Please help us by contributing one!


void begin() 🔗

Start spawning.


void end() 🔗

Stop spawning and self-destruct. To pause spawning, simply set spawning to false.


void spawn() 🔗

The spawn function, use this to randomly spawn a scene from the Scenes array.