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: 197
Reputation: 2,382

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?
Find all the Construct 2 games that were on Steam Greenlight here
B
35
S
9
G
7
Posts: 468
Reputation: 6,866

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: 197
Reputation: 2,382

Post » Mon Aug 07, 2017 11:20 am

Could you post a capx? I'll check it out my end :)
Image
B
29
S
8
G
1
Posts: 120
Reputation: 2,837


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot] and 19 guests