How to pop all same colors that are touching?

Get help using Construct 2

Post » Fri Jul 03, 2015 5:37 am

If I were to create a game like Collapse or Bust-A-Move, what is some good logic to make adjacent colors pop if they are all touching? Would I do Overlap At Offset?
Check out my games on Google Play:
BEAST ATTACK (1,000,000+ downloads!)
ZOMBIE BASH (Android) (Launched Feb 17)
ZOMBIE BASH (iOS) (Launched March 17)
B
54
S
18
G
2
Posts: 436
Reputation: 5,582

Post » Fri Jul 03, 2015 6:10 am

yes that would be the logical choice though if they are actually touching each other the a on collision with would work too
B
5
S
1
Posts: 60
Reputation: 495

Post » Fri Jul 03, 2015 6:38 am

Check the following .capx from alextro. Maybe it has what you want.

Match connected example
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
84
Posts: 5,379
Reputation: 58,440

Post » Fri Jul 03, 2015 2:38 pm

@ash10500 Thank you Ash!
Check out my games on Google Play:
BEAST ATTACK (1,000,000+ downloads!)
ZOMBIE BASH (Android) (Launched Feb 17)
ZOMBIE BASH (iOS) (Launched March 17)
B
54
S
18
G
2
Posts: 436
Reputation: 5,582

Post » Fri Jul 03, 2015 2:39 pm

@zenox98 Thank you! This is the closest to what I was looking for!
Check out my games on Google Play:
BEAST ATTACK (1,000,000+ downloads!)
ZOMBIE BASH (Android) (Launched Feb 17)
ZOMBIE BASH (iOS) (Launched March 17)
B
54
S
18
G
2
Posts: 436
Reputation: 5,582

Post » Fri Jul 03, 2015 9:07 pm

I am working on a Match 3 game http://myconstruct2dev.blogspot.co.uk (source in github) which is not totally dissimilar. The problem is it is recursive - red touching red touching red I think, so you need some sort of array of current colliding colours, then when you scan through it check it's not already in the array, otherwise it could loop around for ever
My tutorial through development blog is at http://myconstruct2dev.blogspot.co.uk/
B
12
S
3
Posts: 221
Reputation: 1,328


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, Kermad, marc254, Nicolas951, tarek2, Yahoo [Bot] and 9 guests