How do I select this object

Get help using Construct 2

Post » Sat Aug 29, 2015 3:29 pm

Say I have X instances of a sprite. What is the proper way to select circled object:
http://i.imgur.com/El1PI8v.jpg
B
26
S
9
G
2
Posts: 78
Reputation: 2,524

Post » Sat Aug 29, 2015 3:46 pm

Put your Sprite into a Family, then you have two unique objects to work with.
ImageImageImage
B
71
S
21
G
231
Posts: 3,688
Reputation: 129,352

Post » Sat Aug 29, 2015 4:56 pm

This is very basic stuff - it is just that I'm experiencing some weird results. Take a look at this:
http://i.imgur.com/yJMJset.jpg
If I have 2 visible sprite instances, I'd expect variable 'count' to go up by 2 per tick - right?
B
26
S
9
G
2
Posts: 78
Reputation: 2,524

Post » Sat Aug 29, 2015 6:09 pm

Nope. That says Pick all of the sprites that are visible. Then increment your global count. You need a For each, or add Sprite.PickedCount.
ImageImageImage
B
71
S
21
G
231
Posts: 3,688
Reputation: 129,352


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, Buddhika, R0J0hound and 17 guests