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
Posts: 21
Reputation: 269

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
33
S
9
G
7
Posts: 451
Reputation: 6,782

Post » Sun Apr 30, 2017 4:54 pm

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


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 25 guests