How do I detect collision of 3+ instance of a sprite?

Get help using Construct 2

Post » Tue Feb 28, 2017 6:17 pm

Hi guys,

I'm trying to build a "bubble shooter" type games.
I can't figure out a system that would detect when 3 or more bubbles of the same color are touching and would destroy them.

Any help would be appreciated. Thanks :)
B
19
S
5
G
4
Posts: 10
Reputation: 3,837

Post » Tue Feb 28, 2017 6:19 pm

Have you tried fiddling around with checking for two values, and using one as Object.Count?
You might also have to do custom eventing using collision boxes and/or pinned helper sprites
Zelda Gamekit (my project)



Example capxs:

Zelda-Style Inventory

Zelda Health

3-saveslot system

[url=https://www.dropbox.com/s/d4396pwak0oh7q6/ZeldaDialogueSystem.capx?dl=0]Zelda-like Dialogue[
B
51
S
24
G
30
Posts: 521
Reputation: 19,592

Post » Wed Mar 01, 2017 5:12 am

Well first of all Bubble shooters take place on a Hex grid. Collision should only be checked after the bubble has taken its place in the grid.

Seems to me you need an array statement checking which spaces fill identical bubble "color" codes rather than checking the collision. Of course I've never attempted to make bubble shooters myself so I can't be sure.
Image Image Image
B
29
S
11
G
27
Posts: 730
Reputation: 17,002


Return to How do I....?

Who is online

Users browsing this forum: rayolf and 6 guests