Is it possible to add tags?

Get help using Construct 2

Post » Sun Apr 30, 2017 4:16 pm

Hello everyone! I was just making the first enemy in my game (a ninja) and I realized I would have lot's of enemys. I've been thinking, is it possible to add classes and tags to objects? I would use this so I can add a event somewhat like "On collision with .enemy" If you know if you can do this please tell me. :)
B
5
S
1
Posts: 21
Reputation: 419

Post » Sun Apr 30, 2017 4:41 pm

Armored Pig DEV wrote:Hello everyone! I was just making the first enemy in my game (a ninja) and I realized I would have lot's of enemys. I've been thinking, is it possible to add classes and tags to objects? I would use this so I can add a event somewhat like "On collision with .enemy" If you know if you can do this please tell me. :)


Families sort work like classes (requires license), and I often use them in a similar way to your example.

Instance variables can be used to create tags, amongst other things.
Find all the Construct 2 games that were on Steam Greenlight here
B
37
S
10
G
7
Posts: 489
Reputation: 7,078

Post » Sun Apr 30, 2017 4:54 pm

Thanks! Familys are awesome! It's EXACTLY what I asked for, and even more.
B
5
S
1
Posts: 21
Reputation: 419


Return to How do I....?

Who is online

Users browsing this forum: eca315 and 40 guests