when layer is invisible

Get help using Construct 2

Post » Fri May 22, 2015 7:10 am

when the layer is invisible using events does that stop any collision going on within that layer
B
5
Posts: 24
Reputation: 279

Post » Fri May 22, 2015 2:02 pm

Hey @phoenix71717, :)

Just tried it, and no, it looks like collisions still work like they always do even if the layer is set to invisible.
I tried both setting the layer to be invisible from the property panel, as well as setting the layer to be invisible via events, and neither seems to affect collisions.
B
28
S
18
G
8
Posts: 333
Reputation: 6,193

Post » Fri May 22, 2015 3:25 pm

Going invisible does not disable collisions.
One ( of many) way to solve this problem is to add an instance variable to your sprite.

Below is an example of a game I have:
The Instance Variable is PullOut_Overlapping
so on > Touch > Sprite
if the PullOut_Overlapping is NOT True then action .... Audio>Play

Image

so if it is TRUE, them don't play Audio

you can do a similar action with collisions....
B
36
S
10
G
4
Posts: 250
Reputation: 7,963

Post » Sat May 23, 2015 4:34 am

Kl
B
5
Posts: 24
Reputation: 279


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests