help with family

Get help using Construct 2

Post » Thu Nov 22, 2012 2:27 pm

How do i when all objects (from one family) dissapear form window -> show text or do event
I do very simple example what is not right

https://dl.dropbox.com/u/44710358/family.capx

i need solution
B
94
S
19
G
34
Posts: 1,840
Reputation: 27,988

Post » Thu Nov 22, 2012 2:56 pm

You can do an objectcount of the family and compare if = 0

familycountvtrix2012-11-22 14:57:06
ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028

Post » Thu Nov 22, 2012 3:17 pm

@vtrix its possible to create thoose events in global variables? when i have more levels than one? or one event sheet to all levels? for example first level has 5 objects but other levels have more objectsdelgado2012-11-22 15:19:21
B
94
S
19
G
34
Posts: 1,840
Reputation: 27,988

Post » Thu Nov 22, 2012 3:28 pm

it doesnt matter if other levels have more objects
you only need this event to check if there are 0 objects,

you dont need a global variable as it counts the familyobjects that are on screen, so you can create a level with 10 objects (from the family) and another with 20 objects , it will count the objects and when 0 it fires the event
ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028

Post » Thu Nov 22, 2012 3:35 pm

ok i will implement your idea to my game :)
B
94
S
19
G
34
Posts: 1,840
Reputation: 27,988

Post » Thu Nov 22, 2012 3:59 pm

@vtrix thanks i think this is itdelgado2012-11-22 16:13:50
B
94
S
19
G
34
Posts: 1,840
Reputation: 27,988

Post » Thu Nov 22, 2012 4:24 pm

@delgado

I made a new example, better use this, its cleaner

familycount2vtrix2012-11-22 16:26:04
ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028

Post » Fri Nov 23, 2012 9:00 am

@vtrix thanks i have no idea about familyCOUNT thanks :)delgado2012-11-23 09:00:32
B
94
S
19
G
34
Posts: 1,840
Reputation: 27,988


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 24 guests