How to make prefab?

Get help using Construct 2

Post » Tue Jul 23, 2013 9:40 pm

In my game one object divides on 4 parts and I need to remove all parts when one of them has collision with something. Should I create something like "prefab" to handle this? How C2 is dealing with prefabs? Thanks.


B
11
S
2
G
4
Posts: 64
Reputation: 2,777

Post » Tue Jul 23, 2013 10:36 pm

container is the closest you can get
though you won't be able to remove parts using the destroy action because container tightly tie the objects together so they can't live without each other.
In other terms, if you destroy one object from a container, all the other object will be destroyed and if you create one, all the other will be created.
So to achieve your effect I would advise to remove them by setting them to invisible.

Anyway... containersYann2013-07-23 22:37:13
B
63
S
22
G
14
Posts: 1,482
Reputation: 16,432


Return to How do I....?

Who is online

Users browsing this forum: NN81, s3eKn, Zjahel0001 and 7 guests