How do I iterate though a family's members?

Just started using Construct 2? Post your questions here

Post » Sun Feb 01, 2015 8:51 am

I'm working on a level editor for my game, and I have a family called collidables you can run into. I've gotten a bunch of the editor working, but now I need to be able to select the family elements so I can actually create the level. I figured I could do this by going through each element of the family and pinning it to a scrollable background element, but I can't figure out how to iterate through the family. Help? Thanks in advance!
B
6
Posts: 16
Reputation: 284

Post » Sun Feb 01, 2015 5:17 pm

System.Foreach
ImageImageImage
B
71
S
22
G
258
Posts: 3,791
Reputation: 143,198

Post » Sun Feb 01, 2015 9:48 pm

That only works on the instances though. At the time of me going through it, there aren't any instances. I'm trying to go through the group itself.
B
6
Posts: 16
Reputation: 284

Post » Sun Feb 01, 2015 11:14 pm

You can't do that.
ImageImageImage
B
71
S
22
G
258
Posts: 3,791
Reputation: 143,198

Post » Sun Feb 01, 2015 11:27 pm

Ok, I've been working on a workaround anyways. Thanks.
B
6
Posts: 16
Reputation: 284


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests