In the platformer example, many tests are made against the object ‘Enemy’, which seems to be a defined group of some kind.
Only, there is no object named ‘Enemy’, there is ‘SlimeWalk’ and ‘Fly’, and they do trigger all those ‘Enemy’ conditions.
How exactly are they designated as ‘Enemy’?
(And by extension, where would I find more documentation on this mechanic)
I hope both the OP and you don’t mind me asking this.
I wanna ask is it not the same with Tags?
And can you give an example of what tags being used for in a game project?
Tags are used to make searching for a similar type of objects easier.
Suppose you use a tag “enemy” for the “SlimeWalk” and “Fly” objects.
Now, you can filter the objects tab to display only those objects that have that “enemy” tag. It’s helpful in cases where there are too many objects and thus, makes searching a lot easier.
Objects from different groups can have the same tags too. It’s just a way of classification.