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