Change frame animation depending on neighbor

Get help using Construct 2

Post » Tue Aug 06, 2013 2:40 am

How can I make a tile to change his animation depending on his neighbor?
For example:

If I have 3 blocks like this:

[1][1][1]

Where [1] represents center frame of a tile
And I want the blocks to automatically change to:

[2][1][3]

Where [2] represents left frame of a tile, and [3] right frame.
Another example would be

[1][1][1][1][1]

To:

[2][1][1][1][3]

So it would be something like "If doesn't have neighbor at right, change frame to 3" and "If doesn't have neighbor at left change frame to 2"

But I've no how to do that in C2.
Anyone can help me please?
B
6
S
1
Posts: 67
Reputation: 636

Post » Tue Aug 06, 2013 9:17 am

I would like to know how to do this too - the only way I've worked out is really stupid and involves setting everything to have platform behaviour and then using the "has wall to left/right" conditions like this. But it doesn't seem like a good way to build things and I bet having a platform behaviour on everything will slow the game down.
B
64
S
25
G
4
Posts: 204
Reputation: 6,993

Post » Tue Aug 06, 2013 5:44 pm

That's a way to do it,
but as you said having 1000 or more blocks with platform behaviour for sure would make the game slow down.
B
6
S
1
Posts: 67
Reputation: 636


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, David181, Google [Bot] and 13 guests