Pick Two Different Animation Names in SAME event tree?

Get help using Construct 2

Post » Mon Apr 28, 2014 8:58 pm

Pick only one:

Pick Sprite where Sprite.AnimationName = "Boulder"
--->For Each Sprite order by sprite.y ascending...
blah blah


it works.

But if I want to pick two different objects in same event tree?


Pick Sprite where Sprite.AnimationName = "Boulder"
OR
Pick Sprite where Sprite.AnimationName = "Diamond"

will not work

Pick Sprite where Sprite.AnimationName = "Boulder"
Pick Sprite where Sprite.AnimationName = "Diamond"


Not that either.

Pick Sprite where (Sprite.AnimationName = "Boulder") | (Sprite.AnimationName = "Diamond")

won't work either (only Boulder will work).

Adding a sub event is not the solution as it will just try to search the "picked" boulders to find diamonds in them.

Any solutions?

Right now I have two event trees, first processing the Boulders and then the Diamonds, but I think the result is not optimal, it would be best if these 2 (animation names) are treated as one in same event tree.

Any suggestions?
B
58
S
18
G
13
Posts: 447
Reputation: 10,740

Post » Mon Apr 28, 2014 9:24 pm

I don't know what your other events look like so this may not be a best solution.
But it works anyway.
You do not have the required permissions to view the files attached to this post.
ImageImageImageImage
B
158
S
67
G
43
Posts: 2,603
Reputation: 35,968

Post » Mon Apr 28, 2014 9:48 pm

@shinkan

At first I got puzzled, I did try that, but then I realized I made it too convoluted by using System, Pick when it is enough with your method.. ;)

It seems to be working now! Will go further on this one. :) Thanks.
B
58
S
18
G
13
Posts: 447
Reputation: 10,740


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 11 guests