How do I swap neighbouring blocks?

Just started using Construct 2? Post your questions here

Post » Fri Jan 29, 2016 9:41 am

so I have a grid of different blocks but all belonging to the same family. How do I swap two neighbouring blocks?
B
15
S
6
Posts: 56
Reputation: 1,237

Post » Fri Jan 29, 2016 1:33 pm

Could you provide more details about what you're asking? Do you mean switch blocks like in a grid-puzzle game like Candy Crush/Bejeweled?
I like giving game advice more than I actually like making games ;)

Image
B
40
S
16
G
3
Posts: 129
Reputation: 4,701

Post » Fri Jan 29, 2016 1:43 pm

TabloidA wrote:Could you provide more details about what you're asking? Do you mean switch blocks like in a grid-puzzle game like Candy Crush/Bejeweled?

yes, like in CC or Bejeweled.
B
15
S
6
Posts: 56
Reputation: 1,237

Post » Fri Jan 29, 2016 3:29 pm

Here's one tutorial for creating match-3 games in C2:
http://gamedevelopment.tutsplus.com/tut ... medev-8071

In the 2nd part of the tutorial it is explained how to swap blocks.
"If you don't build your dream, someone else will hire you to build theirs"
B
12
S
4
G
1
Posts: 60
Reputation: 969

Post » Sat Jan 30, 2016 8:37 am

I was already trying that but it didn't work (block disappeared instead of swapping) so I was looking for an alternative.
B
15
S
6
Posts: 56
Reputation: 1,237

Post » Wed Apr 20, 2016 7:20 pm

Here I provided the example how to swap block freely: how-do-i-check-instance-y-position_t110979?&hilit=swap+line&start=10
ImageImage
B
114
S
51
G
24
Posts: 790
Reputation: 23,480


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest