How do I act on a group of sprites

Just started using Construct 2? Post your questions here

Post » Tue Jan 27, 2015 7:23 pm

Hi.

I have a group of sprites, spite texts, etc that makes up a scorecard that is shown at game over etc.
Is there an easy way to group these objects, so I can hide or show them without having to write actions that hides or shows the individual objects.

I do not think containers work for this or can you foreach object in container?
B
5
S
1
Posts: 59
Reputation: 493

Post » Tue Jan 27, 2015 7:29 pm

Families
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,986

Post » Tue Jan 27, 2015 7:33 pm

Yes families are good if its the same type of sprite object. But I use spritetext, sprites and tiles to make up the score board.

And you can only place the same type of object into a family.
B
5
S
1
Posts: 59
Reputation: 493

Post » Tue Jan 27, 2015 9:53 pm

It's still the way to go. You'll just need to reference 3 items rather then all of them.
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,986


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 5 guests