containers and instances

For questions about using Classic.

Post » Fri Jul 24, 2009 2:22 pm

Say SpriteB is in SpriteA's container, can I have like 10 instances of spriteB for every spriteA?
does it let you do that? or can you only have 1 instance in a container


Here is a beautiful image showing what I'd like to achieve
B
134
S
65
G
16
Posts: 1,766
Reputation: 19,190

Post » Fri Jul 24, 2009 3:12 pm

you can either
1.create 10 seperate identical objects which are coded with a family (not too great a method, but it works, and you can easily pick on demand.)

2.use the pairer plugin to pair 10 instances which each object. (don't ask me how; I don't use it a lot, but that's what it's meant to do.)

3. spread a value and pair them according to the value. (not very flexible mind you)
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Fri Jul 24, 2009 4:27 pm

Unfortunately Containers only contain one instance of an object per container.

Any one of Davios's methods would work for this.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Sat Jul 25, 2009 2:03 am

thanks
B
134
S
65
G
16
Posts: 1,766
Reputation: 19,190

Post » Sat Jul 25, 2009 9:26 am

I'd go with pairer object, the other methods look a bit hacky.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Sat Jul 25, 2009 9:54 am

Pairer object is a bit difficult to work with. As a tip from someone who's battled that eccentric object: don't mix families and objects. This alone will save a ton of time spent on the pairer object. ;)
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Sat Jul 25, 2009 10:19 am

seems to be fine for me so far. I won't be reffering to the family and the pairer thing at the same time, so I hope I won't have any problems down the road.
B
134
S
65
G
16
Posts: 1,766
Reputation: 19,190

Post » Sat Jul 25, 2009 11:11 am

No, I meant this: "Do not pair objects and families. Always pair objects with other objects, families with other families, but never mix objects and families." This will save you from big trouble. ;)
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 9 guests