Skip to content

class system : how to select multiple entities

Fosowl edited this page May 29, 2020 · 3 revisions

creating and selecting multiple entities of the same class

democlasss.jpg

When you create an entities you can give a name or a name and a class this will allow you to select multiple entities of the same class in the scene when using any of the function.

`for exemple let's you could give a class to your the new entities you add to the scene like in the image above by using the following format when giving a name to your entities : "class:name"

you can therefore add multiple entities with the same class but a different name, in the exemple above we declare an entities call "mathis" in the class "zombie" so when we call any of the function by passing "zombie" as a name it will affect all entities of this class, in the exemple it will move all entities in the class "zombie" including the zombie call "mathis"

Clone this wiki locally