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
30
S
10
G
1
Posts: 41
Reputation: 2,471

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
51
S
25
G
107
Posts: 1,581
Reputation: 60,458

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
30
S
10
G
1
Posts: 41
Reputation: 2,471


Return to How do I....?

Who is online

Users browsing this forum: zenox98 and 13 guests