Closed Xrayez closed 2 years ago
The core implementation is good enough I think, so lets merge this...
See https://github.com/godotengine/godot-proposals/issues/3651#issuecomment-994781604, I think it makes sense to introduce SpawnMaterial
in order to make this node more useful.
Resolves godotengine/godot-proposals#3651.
https://user-images.githubusercontent.com/17108460/145722750-46897545-87ea-4790-a9e4-5e1edcc35f34.mp4
Features
rate
and timestep
delay
, useful for implementing spawn waves.limit
the number of nodes spawned in order to automatically stop the spawner.Note that I'm not using
Timer
nodes for this at all, the timer logic is custom and allows for better integration and control.Spawner3D
could be implemented similarly.To-do
Note that not everything below need to be implemented, this is rather a list of ideas.
node_spawned
signal (whenspawn()
is called, either manually or per timer) andfinished
signal (whenlimit > 0
).Position2D
to specify additional spawn points to override the default spawn at origin).Position2D
in succession deterministically. This should be useful for things like explosion sequences.Particles2D
anyways.Example project
https://github.com/goostengine/goost-examples/tree/gd3/2d/spawner