How do I check if an object is Global?

Get help using Construct 2

Post » Thu Aug 27, 2015 2:36 pm

Hello;

I have a family,called COG and some of its sprites are global and some are not. Is there some way to tell, (something like COG.IsGlobal)?

Thanks for your time.

yours
Winkr7
B
34
S
8
G
3
Posts: 169
Reputation: 3,305

Post » Mon Aug 31, 2015 2:33 am

What you could do is create a boolean instance variable in each object called Global and set it to true for the ones that are global and false for the ones that are not. Then when you write your condition using the family, you could make a dual condition including the instance variable so that you only call the ones that are true or false.
Image
B
75
S
23
G
3
Posts: 673
Reputation: 9,283

Post » Mon Aug 31, 2015 7:25 pm

Thanks TheDom. I may end up having to do that.

yours
winkr7
B
34
S
8
G
3
Posts: 169
Reputation: 3,305


Return to How do I....?

Who is online

Users browsing this forum: ahmetkahveci, Google [Bot] and 48 guests