Object grouping?

Post » Thu Apr 20, 2017 2:41 pm

Is it possible to group a bunch of objects together? So say you have a load of different types of bullets, you make them in a group called bullets, then if any bullets touch enemy, destroy bullet? Rather than implement it for each individual one?
B
4
S
2
G
5
Posts: 346
Reputation: 2,417

Post » Thu Apr 20, 2017 2:46 pm

liamdawe wrote:Is it possible to group a bunch of objects together? So say you have a load of different types of bullets, you make them in a group called bullets, then if any bullets touch enemy, destroy bullet? Rather than implement it for each individual one?


Isn't that just Families?

I'm guessing it's not available in the free/beta version of C3, just like it's not in the free version of C2.

I suppose you could put the bullets into a single object, just as different animations, and do damage based on animation name. That would allow you to destroy the bullet in the same collision event that damages the enemy. You'd just have to set the right animation and other bullet properties when the bullet is created.

Code: Select all
Bullet on collision with Enemy
   -> Enemy subtract Bullet.AnimationName = "BigBullet" ? 2 : 1 from HP
   -> Bullet Destroy
Find all the Construct 2 games that were on Steam Greenlight here
B
35
S
9
G
7
Posts: 467
Reputation: 6,864


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests