Sprite grouping

can we be able to group sprites in a category, so we don’t have to make multiple behaviours for the same output? Like multiple robot sprites could be grouped as “robots” in the collision block

1 Like

You can use Parent objects for this.

2 Likes

I thought that controlled sprites?

2 Likes

oh wait, this is alpaca, ok, gotcha thanks

2 Likes

Childs have the code of the Parent objects, but they also will output for collisions looking for the Parent

1 Like

ohwait, Im talking about in behaviour blocks, like raycast, instead of choosing one object at a time, just have a group to choose it saves time and a lot of logiclines

Seems like this could be useful. In most cases you could probably use a parent still

1 Like

@CodeAlpaca is right, parents are probably the best way to do this. Maybe read this for an overview:

5 Likes

Yeah if you create a parent object and set every object you want as a child then you can select the parent (in the collision behavior) and all the child objects will trigger it.

1 Like