How do I change the frame of a family objects differently ?

Get help using Construct 2

Post » Thu Jul 14, 2016 8:41 pm

Hi guys, sorry for my english.

I have 3 Frames, 1 Object, 3 instances.

I want to change the frame of an object to "currentFrame + 1" when the object is on collision with the player.

AND the another instances of the object (no collision) change the frame to "currentFrame - 1"

Image

I tried this and some variations without Family:
Image

Can someone help me?
B
43
S
15
G
6
Posts: 50
Reputation: 5,816

Post » Thu Jul 14, 2016 9:31 pm

On your top level event, only the block that has been collided with is picked, so actions will not affect other instances of the block.

Have your actions for the collided block at the top level event, and then for your sub event, you'll need to add in a pick all blocks condition, and an inverted "is active" condition (is NOT active).

If you use the self expression, you won't need a For Each condition.

https://www.dropbox.com/s/efg4fxlq7wwd1 ... .capx?dl=0
Mistakes were made.
B
54
S
28
G
115
Posts: 1,705
Reputation: 65,083

Post » Fri Jul 15, 2016 3:06 am

Never before I used "Pick all". Make sense!, I am glad to learn something new about how works the Event editor.

Thank you very much @oosyrag
B
43
S
15
G
6
Posts: 50
Reputation: 5,816


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 30 guests