Object grouping?

  • 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?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

    Bullet on collision with Enemy
    	-> Enemy subtract Bullet.AnimationName = "BigBullet" ? 2 : 1 from HP
    	-> Bullet Destroy[/code:27n8w8dp]
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)