How do I select just the top sprite?:

Get help using Construct 2

Post » Wed Sep 21, 2016 11:59 pm

plinkie wrote:That's exactly the same as what I posted above. Click on Family > Pick top instance. The non-family .capx is pretty much what you posted but like I said it gets out of hand with the comparisons on loads of objects.


Yes, plinkie. You were right. Thank you very much for the information. :oops:
B
11
S
6
G
15
Posts: 256
Reputation: 9,207

Post » Tue Sep 27, 2016 9:46 am

plinkie wrote:but like I said it gets out of hand with the comparisons on loads of objects.

That's one major problem in our project.
Another problem we have to solve is that all our objects have different actions. In our case a tap on object A should trigger sound A and tap on object B should trigger sound B.
We can not apply a action to the family as a whole because of that.
B
3
Posts: 4
Reputation: 533

Post » Tue Sep 27, 2016 3:22 pm

@punktum
I've got a fix for this as well. Create a family instance variable i.e. sound. On all objectA set it to 1, on all objectB set it to 2. Under the on touched family pick top instance event put sub events if sound = 1 > play sound1, if sound = 2 > play sound2.
B
47
S
17
G
81
Posts: 2,223
Reputation: 48,093

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 52 guests