Attaches a MoveOnSpawn component to scenes spawned by a SceneSpawner2D, enabling them to move in a direction for a set duration after instantiation.
Source: addons/item_vault/scene_spawner/2d/move_on_spawn_2d.gd
Syntax
class SpawnMoveInitializer2D extends NodeMembers
| Name | Kind | Summary |
|---|---|---|
spawner | Property | The spawner this script attaches itself to the spawned signal for. When the spawner spawns a scene, this script triggers by adding a MoveOnSpawn Node to the spawned scene. |
settings | Property | Settings that describe how a SpawnMoveInitializer2D should behave. |