Spawn on Area

Description

 

The Spawn on Area behavior will generate a duplicated version of your specified object within a selected area.

 

 

Properties

Object A

This is the object you want to spawn.

Spawn Area

This is the rectangular area that you want your object to spawn within. You can drag and create an area within the visual selector

areaSelect.gif

<

The < icon will open the spawn area input fields allowing you to manually enter coordinates for the spawn area. If you select an area visually, this will automatically be populated.

Screen Coordinates

This toggle switches the spawn area to use coordinates relative to the the entire scene world rather than the specific object. For more information on screen coordinates see the documentation on the Canvas.

Multiplier

The number of object to spawn each time the behavior is executed.

# Alive Objects

The maximum number of spawned objects that can exist in your scene at any given time. Once this number is met, no more objects can be spawned.

Position Randomness

The amount of randomness in the position of each spawned object. 0% means there is no randomness to the objects placement, and they could stack on top of each other (if they are not affected by physics). 100% is completely random, the objects will spawn anywhere within the spawn area, never touching another.

Recycle

With the recycle toggle on, older spawned objects will be removed automatically one at a time as soon as the specified # Alive objects us met.

Outputs

No outputs for this behavior

Examples

The spawn on area  behavior can be used to generate enemies randomly on your screen within a specified area. 

 

Related

Spawn on Object

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk