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
52
S
20
G
7
Posts: 54
Reputation: 7,053

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
60
S
30
G
131
Posts: 1,930
Reputation: 73,837

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
52
S
20
G
7
Posts: 54
Reputation: 7,053


Return to How do I....?

Who is online

Users browsing this forum: plinkie, PurifiedWater, vubidugil and 4 guests