What is the difference between Destroy and Set Invisible?

Get help using Construct 2

Post » Mon Aug 07, 2017 9:19 am

Hey
Is there something wrong if I use set invisible for killed object instead of destroy?
B
10
S
4
G
2
Posts: 165
Reputation: 2,316

Post » Mon Aug 07, 2017 9:40 am

@marcinkowski

Destroying it removes it completely, setting it invisible just means you can't see it.

Unless you're disabling all behaviours relating to that object when you set it invisible, you could end up with an active invisible enemy, and even if you are you could still end up seeing odd things happen.

Is there any reason why you don't want to destroy the object?
Vote for all the Construct 2 games on Steam Greenlight - Find them here
B
33
S
9
G
7
Posts: 450
Reputation: 6,778

Post » Mon Aug 07, 2017 9:52 am

thanks @OddConfection

I cant add "destroy" because game is crashing ;-( This enemies has got pinned "think cloud" and when I destroy it, I'm destroying many things in the game, like LifeBar of enemies or lifeBar stops changing when enemy is hitted.
This works for me only:
Image
B
10
S
4
G
2
Posts: 165
Reputation: 2,316

Post » Mon Aug 07, 2017 11:20 am

Could you post a capx? I'll check it out my end :)
Image
B
27
S
7
G
1
Posts: 104
Reputation: 2,649


Return to How do I....?

Who is online

Users browsing this forum: David181, paala, Shenkai the ssj, tatogame, Yahoo [Bot] and 18 guests